Skip to content

Commit

Permalink
Ensure Accept header is preserved after deep merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Oct 31, 2011
1 parent c251055 commit 29b1b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/twitter/client_spec.rb
Expand Up @@ -82,7 +82,7 @@

it "should recursively merge connection options" do
stub_get("/1/statuses/user_timeline.json").
with(:query => {:screen_name => "sferik"}, :headers => {"User-Agent" => "Custom User Agent"}).
with(:query => {:screen_name => "sferik"}, :headers => {"Accept" => "application/json", "User-Agent" => "Custom User Agent"}).
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
client = Twitter::Client.new(:connection_options => {:headers => {:user_agent => 'Custom User Agent'}})
client.user_timeline("sferik")
Expand Down

0 comments on commit 29b1b2a

Please sign in to comment.