Skip to content

Instantly share code, notes, and snippets.

@elben
Created May 15, 2012 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elben/2705187 to your computer and use it in GitHub Desktop.
Save elben/2705187 to your computer and use it in GitHub Desktop.
stub_request(:get, 'https://graph.facebook.com/search').with(:query => hash_including({"query" => "mytestquery"})).to_return(:body => "{}")
///////////////////
TypeError: can't convert RR::WildcardMatchers::HashIncluding into String
webmock (1.8.7) lib/webmock/request_pattern.rb:97:in `+'
webmock (1.8.7) lib/webmock/request_pattern.rb:97:in `add_query_params'
webmock (1.8.7) lib/webmock/request_pattern.rb:135:in `add_query_params'
webmock (1.8.7) lib/webmock/request_pattern.rb:52:in `assign_options'
webmock (1.8.7) lib/webmock/request_pattern.rb:23:in `with'
webmock (1.8.7) lib/webmock/request_stub.rb:13:in `with'
test/unit/my_test.rb:13:in `__bind_1337116206_179131'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment