spec/ratis/route_pattern_spec.rb in ratis-3.4.3 vs spec/ratis/route_pattern_spec.rb in ratis-3.5.0
- old
+ new
@@ -1,25 +1,17 @@
require 'spec_helper'
describe Ratis::RoutePattern 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
# :route_short_name => "LTRL", :direction => "E", :date => "01/01/2014", :service_type => 'W', :routeid => "46880"
before do
@today = Chronic.parse('today at 12pm')
@conditions = {:route_short_name => 'LTRL',
:direction => 'E',
:date => @today,
:service_type => 'W',
- :routeid => '46880'
+ :routeid => '144740'
}
end
it 'only makes one request' do
# false just to stop further processing of response
@@ -32,11 +24,11 @@
action.should eq('Routepattern')
options["Route"].should eq('LTRL')
options["Direction"].should eq('E')
options["Date"].should eq(@today)
options["Servicetype"].should eq('W')
- options["Routeid"].should eq('46880')
+ options["Routeid"].should eq('144740')
end.and_return(double('response', :success? => false))
Ratis::RoutePattern.all(@conditions.dup)
end
@@ -114,11 +106,7 @@
expect do
Ratis::RoutePattern.all(conditions)
end.to raise_error(ArgumentError, 'You must provide a routeid')
end
-
-
end
-
end
-