From 5800db7c1b15fa96653e9525187bb8c90bf92bc5 Mon Sep 17 00:00:00 2001 From: Max De Marzi Date: Fri, 20 Dec 2013 12:35:14 -0600 Subject: [PATCH] authentication now happens at initialization, not later --- spec/unit/connection_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/unit/connection_spec.rb b/spec/unit/connection_spec.rb index 8ed281f..eeb822e 100644 --- a/spec/unit/connection_spec.rb +++ b/spec/unit/connection_spec.rb @@ -109,7 +109,7 @@ module Neography end it "does requests with authentication" do - connection.client.should_receive(:set_auth).with( + connection.client.should_not_receive(:set_auth).with( "http://localhost:7474/db/data/foo/bar", "foo", "bar") { double.as_null_object }