{"action":"created","issue":{"url":"https://api.github.com/repos/nathankot/webstub/issues/30","labels_url":"https://api.github.com/repos/nathankot/webstub/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/nathankot/webstub/issues/30/comments","events_url":"https://api.github.com/repos/nathankot/webstub/issues/30/events","html_url":"https://github.com/nathankot/webstub/issues/30","id":102153863,"number":30,"title":"Is there a problem stubbing URLs with query params?","user":{"login":"matthewsinclair","id":311495,"avatar_url":"https://avatars.githubusercontent.com/u/311495?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewsinclair","html_url":"https://github.com/matthewsinclair","followers_url":"https://api.github.com/users/matthewsinclair/followers","following_url":"https://api.github.com/users/matthewsinclair/following{/other_user}","gists_url":"https://api.github.com/users/matthewsinclair/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewsinclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewsinclair/subscriptions","organizations_url":"https://api.github.com/users/matthewsinclair/orgs","repos_url":"https://api.github.com/users/matthewsinclair/repos","events_url":"https://api.github.com/users/matthewsinclair/events{/privacy}","received_events_url":"https://api.github.com/users/matthewsinclair/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-08-20T14:37:18Z","updated_at":"2015-08-21T13:13:19Z","closed_at":"2015-08-21T00:22:25Z","body":"I have two pieces of otherwise identical code except for the URL being stubbed:\r\n```\r\nstub_request(\r\n    :get, 'http://api.url.com/api/v1/tags/popular').\r\n    to_return(json: SOME_JSON_1)\r\n```\r\nand\r\n```\r\nstub_request(\r\n    :get, 'http://api.url.com/api/v1/tags/popular?count=1').\r\n    to_return(json: SOME_JSON_2)\r\n```\r\n\r\nI can't seem to get the second version to work. Any `:get` to the second URL is not working, whereas the first one works perfectly. I'm obviously doing something stupid, but I can't work out what it is. \r\n\r\nAny help much appreciated. "},"comment":{"url":"https://api.github.com/repos/nathankot/webstub/issues/comments/133422638","html_url":"https://github.com/nathankot/webstub/issues/30#issuecomment-133422638","issue_url":"https://api.github.com/repos/nathankot/webstub/issues/30","id":133422638,"user":{"login":"nathankot","id":1400871,"avatar_url":"https://avatars.githubusercontent.com/u/1400871?v=3","gravatar_id":"","url":"https://api.github.com/users/nathankot","html_url":"https://github.com/nathankot","followers_url":"https://api.github.com/users/nathankot/followers","following_url":"https://api.github.com/users/nathankot/following{/other_user}","gists_url":"https://api.github.com/users/nathankot/gists{/gist_id}","starred_url":"https://api.github.com/users/nathankot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathankot/subscriptions","organizations_url":"https://api.github.com/users/nathankot/orgs","repos_url":"https://api.github.com/users/nathankot/repos","events_url":"https://api.github.com/users/nathankot/events{/privacy}","received_events_url":"https://api.github.com/users/nathankot/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T13:13:19Z","updated_at":"2015-08-21T13:13:19Z","body":"I doubt it's expected behaviour, although a quick search in AFMotion and AFNetworking don't show any issues relating to it. I would have to guess that if this were an issue with those libraries something would have come up because it'd likely affect others as well,\r\n\r\nare you using AFMotions `request_parameters` syntax? i.e\r\n\r\n```ruby\r\nclient.get(\"users\", id: 1) do |result|\r\n  ...\r\nend\r\n```"}}