spec/github/request/request_spec.rb in github_api-0.11.3 vs spec/github/request/request_spec.rb in github_api-0.12.0
- old
+ new
@@ -26,9 +26,11 @@
it 'responds to get request' do
expect(subject).to respond_to(:get_request)
end
it 'handles enterprise uri correctly' do
- subject.stub(:connection).and_return conn
+ instance = Github::Request.new(:get, path, subject)
+ instance.stub(:connection).and_return conn
+ Github::Request.stub(:new).and_return instance
expect { subject.get_request(path) }.not_to raise_error()
end
end