Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karabijavad committed Jan 15, 2014
1 parent 7e63e2e commit 6db7f83
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/integration/rest_header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

it "should add a content type if there's existing headers" do
subject.merge_options({:headers => {'Content-Type' => 'foo/bar'}})[:headers].should ==
{'Content-Type' => "foo/bar", "User-Agent" => "Neography/#{Neography::VERSION}" , "X-Stream"=>true}
{'Content-Type' => "foo/bar", "User-Agent" => "Neography/#{Neography::VERSION}" , "X-Stream"=>true, "max-execution-time"=>6000}
end

end
4 changes: 3 additions & 1 deletion spec/unit/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module Neography
its(:username) { should == nil }
its(:password) { should == nil }
its(:parser) { should == MultiJsonParser}
its(:max_execution_time) { should == 6000 }

it "has a hash representation" do
expected_hash = {
Expand All @@ -37,7 +38,8 @@ module Neography
:authentication => nil,
:username => nil,
:password => nil,
:parser => MultiJsonParser
:parser => MultiJsonParser,
:max_execution_time => 6000
}
config.to_hash.should == expected_hash
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ module Neography
it "adds the User-Agent to the headers" do
connection.client.should_receive(:get).with(
"http://localhost:7474/db/data/foo/bar",
nil, { "User-Agent" => "Neography/#{Neography::VERSION}", "X-Stream"=>true}
nil, { "User-Agent" => "Neography/#{Neography::VERSION}", "X-Stream"=>true, "max-execution-time"=>6000}
) { double.as_null_object }

connection.get("/foo/bar", :headers => {})
Expand Down

0 comments on commit 6db7f83

Please sign in to comment.