Skip to content

Commit

Permalink
missed a response object
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Feb 9, 2015
1 parent a6d40c5 commit 30f82ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/unit/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ module Neography
let(:response) { double("response", :status => 200, :body=> "").as_null_object }

it "does a GET request" do
expect(connection.client).to receive(:request).with(:method => :get, :path => "/db/data/node/bar", :body => nil, :headers => nil) { response}
expect(connection.client).to receive(:request).with(:method => :get, :path => "/db/data/node/bar", :body => nil, :headers => nil) { response }
connection.get("/node/bar")
end

Expand Down Expand Up @@ -154,7 +154,7 @@ module Neography
expect(connection.client).not_to receive(:set_auth).with(
"http://localhost:7474/db/data/node/bar",
"foo",
"bar") { double.as_null_object }
"bar") { response }

expect(connection.client).to receive(:request).with(
:method => :get, :path => "/db/data/node/bar", :body => nil, :headers => nil) { response }
Expand Down

0 comments on commit 30f82ef

Please sign in to comment.