search for: search_host

Displaying 1 result from an estimated 1 matches for "search_host".

Did you mean: search_hits
2013 Jan 29
0
How to stub a class inside a module with Mocha in Ruby?
...ions[:consumer_secret] @token = options[:token] @secret = options[:secret] @proxy = options[:proxy] @debug = options[:debug] @api_version = options[:api_version] || ''1'' @api_host = options[:api_host] || ''api.twitter.com'' @search_host = options[:search_host] || ''search.twitter.com'' end ... def request_token(options={}) consumer(:secure => true).get_request_token(options) end end The request_token is the method I''m trying to stub. And this is what I''ve done in Sinatra...