spec/ratis/routes_spec.rb in ratis-3.3.6 vs spec/ratis/routes_spec.rb in ratis-3.3.7
- old
+ new
@@ -9,14 +9,14 @@
end
end
let(:empty_body){ {:allroutes2_response => {:routes => []}} }
- describe '#all' do
+ describe '#all', vcr: {} do
it 'returns all routes' do
response = Ratis::Routes.all
- expect(response).to have(111).items
+ expect(response).to have(104).items
expect(response.all?{|rte| rte.is_a?(Ratis::Route) }).to be_true
end
it 'only makes one request' do
Ratis::Request.should_receive(:get).once.and_call_original
@@ -35,13 +35,13 @@
response = Ratis::Routes.all
route = response.first
expect(response).to be_a(Array)
expect(route).to be_a(Ratis::Route)
- expect(route.short_name).to eq('0')
+ expect(route.short_name).to eq('1')
expect(route.directions).to have(2).directions
- expect(route.directions).to include('N')
- expect(route.directions).to include('S')
+ expect(route.directions).to include('E')
+ expect(route.directions).to include('W')
end
end
describe '#timetable' do