From 2e9da179b08e648be849810d855ebabe5a7c52e4 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Tue, 15 Nov 2022 17:02:39 +0000 Subject: [PATCH] feat: change ' ' to "" in location_spec --- spec/models/location_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/models/location_spec.rb b/spec/models/location_spec.rb index 4ae743841..68c98b020 100644 --- a/spec/models/location_spec.rb +++ b/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