spec/ratis/closest_stop_spec.rb in ratis-3.3.3 vs spec/ratis/closest_stop_spec.rb in ratis-3.3.4
- old
+ new
@@ -3,11 +3,11 @@
describe Ratis::ClosestStop do
before do
Ratis.reset
Ratis.configure do |config|
- config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-252/soap.cgi'
+ config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi'
config.namespace = 'PX_WEB'
end
end
describe '#where' do
@@ -57,11 +57,11 @@
it 'parses out the stop fields correctly' do
stops = Ratis::ClosestStop.where(@conditions.dup)
stop = stops.first
- expect(stop.latitude).to eq('33.454494')
- expect(stop.longitude).to eq('-112.070508')
+ 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.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')