Skip to content

Commit

Permalink
Making tests work on Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
simpsonjulian committed Aug 14, 2012
1 parent cfd281f commit 0da275e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions spec/integration/rest_header_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
end

it "should not add a content-type header if there's no existing headers" do
@neo.merge_options({}).should == {:parser => OjParser}
@neo.merge_options({}).keys.should == [:parser]
end

it "should add a content type if there's existing headers" do
@neo.merge_options({:headers => {'Content-Type' => 'foo/bar'}}).should ==
{:headers => {'Content-Type' => "foo/bar",
"User-Agent" => "Neography/#{Neography::VERSION}"},
:parser => OjParser}
@neo.merge_options({:headers => {'Content-Type' => 'foo/bar'}})[:headers].should ==
{'Content-Type' => "foo/bar", "User-Agent" => "Neography/#{Neography::VERSION}"}

end


Expand Down

0 comments on commit 0da275e

Please sign in to comment.