Permalink
Browse files

pass parameters properly to EM::Twitter::Client

  • Loading branch information...
1 parent 8215f7d commit 97914cb6eab5a15339837a166f9b6419b3d7d8e3 @stve stve committed with sferik May 12, 2012
Showing with 8 additions and 11 deletions.
  1. +2 −3 lib/tweetstream/client.rb
  2. +6 −8 spec/tweetstream/client_spec.rb
@@ -353,7 +353,6 @@ def connect(path, query_parameters = {}, &block)
:method => method.to_s.upcase,
:user_agent => user_agent,
:on_inited => inited_proc,
- :filters => params.delete(:track),
:params => params,
:oauth => auth_params
}.merge(extra_stream_parameters)
@@ -490,8 +489,8 @@ def auth_params
{
:consumer_key => consumer_key,
:consumer_secret => consumer_secret,
- :access_key => oauth_token,
- :access_secret => oauth_token_secret
+ :token => oauth_token,
+ :token_secret => oauth_token_secret
}
end
@@ -68,13 +68,12 @@
:method => 'POST',
:user_agent => TweetStream::Configuration::DEFAULT_USER_AGENT,
:on_inited => nil,
- :filters => 'monday',
- :params => {},
+ :params => { :track => 'monday'},
:oauth => {
:consumer_key => 'abc',
:consumer_secret => 'def',
- :access_key => '123',
- :access_secret => '456'
+ :token => '123',
+ :token_secret => '456'
}
).and_return(@stream)
@@ -418,13 +417,12 @@
:method => 'POST',
:user_agent => TweetStream::Configuration::DEFAULT_USER_AGENT,
:on_inited => nil,
- :filters => 'monday',
- :params => {},
+ :params => {:track => 'monday'},
:oauth => {
:consumer_key => '123456789',
:consumer_secret => 'abcdefghijklmnopqrstuvwxyz',
- :access_key => '123456789',
- :access_secret => 'abcdefghijklmnopqrstuvwxyz'
+ :token => '123456789',
+ :token_secret => 'abcdefghijklmnopqrstuvwxyz'
}
).and_return(@stream)

0 comments on commit 97914cb

Please sign in to comment.