Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure Accept header is preserved after deep merge

  • Loading branch information...
commit 29b1b2abe6d55d88331a6e6f2265f1ec436d8188 1 parent c251055
@sferik authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/twitter/client_spec.rb
View
2  spec/twitter/client_spec.rb
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.