spec/ratis/closest_stop_spec.rb in ratis-3.4.3 vs spec/ratis/closest_stop_spec.rb in ratis-3.5.0

- old
+ new

@@ -1,17 +1,8 @@ require 'spec_helper' describe Ratis::ClosestStop do - - before do - Ratis.reset - Ratis.configure do |config| - config.endpoint = 'http://soap.valleymetro.org/cgi-bin-soap-web-262/soap.cgi' - config.namespace = 'PX_WEB' - end - end - describe '#where', vcr: {} do before do @today = Time.now.strftime("%m/%d/%Y") @conditions = {:latitude => '33.4556', :longitude => '-112.071807', @@ -30,11 +21,10 @@ action.should eq('Closeststop') options["Locationlat"].should eq(@conditions[:latitude]) options["Locationlong"].should eq(@conditions[:longitude]) options["Locationtext"].should eq(@conditions[:location_text]) options["Numstops"].should eq(@conditions[:num_stops]) - end.and_return(double('response', :success? => false)) Ratis::ClosestStop.where(@conditions.dup) end @@ -90,10 +80,6 @@ expect do Ratis::ClosestStop.where(conditions) end.to raise_error(ArgumentError, 'You must provide a longitude') end end - - - end -