spec/ratis/routes_spec.rb in ratis-3.4.3 vs spec/ratis/routes_spec.rb in ratis-3.5.0
- old
+ new
@@ -1,21 +1,13 @@
require 'spec_helper'
describe Ratis::Routes 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
-
let(:empty_body){ {:allroutes2_response => {:routes => []}} }
describe '#all', vcr: {} do
it 'returns all routes' do
response = Ratis::Routes.all
- expect(response).to have(104).items
+ expect(response).to have(103).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