Browse Source

test: fixed

pull/1636/head
natdeanlewissoftwire 3 years ago
parent
commit
a5e9660368
  1. 12
      spec/services/bulk_upload/lettings/validator_spec.rb

12
spec/services/bulk_upload/lettings/validator_spec.rb

@ -30,7 +30,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["too many columns, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Too many columns, please ensure you have used the correct template"])
end end
end end
@ -81,7 +81,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end end
end end
@ -99,7 +99,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end end
end end
end end
@ -118,7 +118,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["too many columns, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Too many columns, please ensure you have used the correct template"])
end end
end end
@ -169,7 +169,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end end
end end
@ -187,7 +187,7 @@ RSpec.describe BulkUpload::Lettings::Validator do
it "is not valid" do it "is not valid" do
expect(validator).not_to be_valid expect(validator).not_to be_valid
expect(validator.errors["base"]).to eql(["incorrect number of fields, please ensure you have used the correct template"]) expect(validator.errors["base"]).to eql(["Incorrect number of fields, please ensure you have used the correct template"])
end end
end end
end end

Loading…
Cancel
Save