From a10671a5b5276eff0ca3e54cfe9c7c29f8e0fa2b Mon Sep 17 00:00:00 2001 From: "M. Simon Borg" Date: Sun, 2 Jul 2017 14:56:06 -0400 Subject: [PATCH] fix a test --- spec/models/office_location_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/models/office_location_spec.rb b/spec/models/office_location_spec.rb index dbf504af..edccb8fd 100644 --- a/spec/models/office_location_spec.rb +++ b/spec/models/office_location_spec.rb @@ -197,7 +197,7 @@ expect(office.longitude).to_not be(nil) end - it 'calls #set_city_state_and_zip before_save only if it\'s rep is not a CongressionalRep' do + it 'calls #set_city_state_and_zip before_save only if it\'s rep is a StateRep' do rep = StateRep.create(state: State.new, chamber: 'lower') office = OfficeLocation.new address: '123 Main St., Anytown, NY 10000', rep: rep office.save @@ -211,10 +211,10 @@ office = OfficeLocation.new address: '123 Main St., Anytown, NY 10000', rep: rep office.save - expect(office.address).to eq('123 Main St.') - expect(office.city).to eq('Anytown') - expect(office.state).to eq('NY') - expect(office.zip).to eq('10000') + expect(office.address).to_not eq('123 Main St.') + expect(office.city).to_not eq('Anytown') + expect(office.state).to_not eq('NY') + expect(office.zip).to_not eq('10000') rep = CongressionalRep.create(state: State.new, chamber: 'lower') office = OfficeLocation.new address: "123 Main St.\nAnytown\nNY 10000-1234", rep: rep