spec/ratis/closest_stop_spec.rb in ratis-3.3.6 vs spec/ratis/closest_stop_spec.rb in ratis-3.3.7

- old
+ new

@@ -8,11 +8,11 @@ config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi' config.namespace = 'PX_WEB' end end - describe '#where' do + describe '#where', vcr: {} do before do @today = Time.now.strftime("%m/%d/%Y") @conditions = {:latitude => '33.4556', :longitude => '-112.071807', :location_text => 'some location text', @@ -59,10 +59,10 @@ stops = Ratis::ClosestStop.where(@conditions.dup) stop = stops.first expect(stop.latitude.to_f).to be_within(0.001).of(33.454494) expect(stop.longitude.to_f).to be_within(0.001).of(-112.070508.to_f) - expect(stop.area).to be_nil + expect(stop.area).to eq('Phoenix') expect(stop.walk_dir).to eq('SE') expect(stop.stop_position).to eq('Y') expect(stop.description).to eq('FILLMORE ST & 3RD ST') expect(stop.walk_dist).to eq('0.15') expect(stop.side).to eq('Far')