spec/ratis/timetable_spec.rb in ratis-3.3.0 vs spec/ratis/timetable_spec.rb in ratis-3.3.1
- old
+ new
@@ -11,11 +11,11 @@
describe '#where' do
before do
@today = Time.now.strftime("%m/%d/%Y")
- @conditions = {:route_short_name => '0',
+ @conditions = {:route_short_name => 'ZERO',
:direction => 'N',
:service_type => 'W',
:date => @today}
end
@@ -26,11 +26,11 @@
end
it 'requests the correct SOAP action with correct args' do
Ratis::Request.should_receive(:get) do |action, options|
action.should eq('Timetable')
- options["Route"].should eq('0')
+ options["Route"].should eq('ZERO')
options["Direction"].should eq('N')
options["Date"].should eq(@today)
options["Servicetype"].should be_nil
end.and_return(double('response', :success? => false))
@@ -57,14 +57,14 @@
end
it "should parse the timetable/stop/trip fields" do
timetable = Ratis::Timetable.where(@conditions.dup)
- expect(timetable.route_short_name).to eq('0')
+ expect(timetable.route_short_name).to eq('ZERO')
expect(timetable.direction).to eq('N')
expect(timetable.service_type).to eq('Weekday')
expect(timetable.operator).to eq('AP')
- expect(timetable.effective).to eq('05/20/13')
+ expect(timetable.effective).to eq('07/22/13')
stop = timetable.timepoints.first
expect(stop.ratis_stop_id).to eq(0)
expect(stop.atis_stop_id).to eq('3317')