Browse Source

feat: change ' ' to "" in location_spec

pull/987/head
Sam Seed 4 years ago
parent
commit
2e9da179b0
  1. 6
      spec/models/location_spec.rb

6
spec/models/location_spec.rb

@ -123,7 +123,7 @@ RSpec.describe Location, type: :model do
it "returns incomplete when the postcode is missing" do
location.postcode = nil
expect(location.status).to eq(:incomplete)
location.postcode = ' '
location.postcode = ""
expect(location.status).to eq(:incomplete)
end
@ -135,14 +135,14 @@ RSpec.describe Location, type: :model do
it "returns incomplete when the unit type is missing" do
location.type_of_unit = nil
expect(location.status).to eq(:incomplete)
location.type_of_unit = ' '
location.type_of_unit = ""
expect(location.status).to eq(:incomplete)
end
it "returns incomplete when the mobility type is missing" do
location.mobility_type = nil
expect(location.status).to eq(:incomplete)
location.mobility_type = ' '
location.mobility_type = ""
expect(location.status).to eq(:incomplete)
end
end

Loading…
Cancel
Save