You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
455 B
22 lines
455 B
2 years ago
|
require "rails_helper"
|
||
|
|
||
2 years ago
|
RSpec.describe BulkUpload::Sales::Year2022::RowParser do
|
||
2 years ago
|
subject(:parser) { described_class.new(attributes) }
|
||
|
|
||
|
describe "validations" do
|
||
|
before do
|
||
|
parser.valid?
|
||
|
end
|
||
|
|
||
|
describe "#field_117" do
|
||
|
context "when not a possible value" do
|
||
|
let(:attributes) { { field_117: "3" } }
|
||
|
|
||
|
it "is not valid" do
|
||
|
expect(parser.errors).to include(:field_117)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|