{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/148","labels_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/148/comments","events_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/148/events","html_url":"https://github.com/AliSoftware/OHHTTPStubs/issues/148","id":126857512,"number":148,"title":"Problem stubing specific url","user":{"login":"ogezue","id":2361031,"avatar_url":"https://avatars.githubusercontent.com/u/2361031?v=3","gravatar_id":"","url":"https://api.github.com/users/ogezue","html_url":"https://github.com/ogezue","followers_url":"https://api.github.com/users/ogezue/followers","following_url":"https://api.github.com/users/ogezue/following{/other_user}","gists_url":"https://api.github.com/users/ogezue/gists{/gist_id}","starred_url":"https://api.github.com/users/ogezue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogezue/subscriptions","organizations_url":"https://api.github.com/users/ogezue/orgs","repos_url":"https://api.github.com/users/ogezue/repos","events_url":"https://api.github.com/users/ogezue/events{/privacy}","received_events_url":"https://api.github.com/users/ogezue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T11:42:07Z","updated_at":"2016-01-15T11:44:07Z","closed_at":null,"body":"I try to stub a specific url with this code:\r\n\r\n```\r\n        self.httpStubHeader = stub(isPath(\"http://www.myserver.com/ressources/objects\")) { _ in\r\n            let stubPath = OHPathForFile(\"objetcs.json\", self.dynamicType)\r\n            \r\n            return fixture(stubPath!,status: 200 ,headers:\r\n                [\"Content-Type\":\"application/json\"])\r\n        }\r\n```\r\n\r\nbut the stub is never called. isPath is evaluated successfully. What am I doing wrong? Perhaps this could be added to the usage examples?"},"comment":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/comments/171941131","html_url":"https://github.com/AliSoftware/OHHTTPStubs/issues/148#issuecomment-171941131","issue_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/148","id":171941131,"user":{"login":"AliSoftware","id":216089,"avatar_url":"https://avatars.githubusercontent.com/u/216089?v=3","gravatar_id":"","url":"https://api.github.com/users/AliSoftware","html_url":"https://github.com/AliSoftware","followers_url":"https://api.github.com/users/AliSoftware/followers","following_url":"https://api.github.com/users/AliSoftware/following{/other_user}","gists_url":"https://api.github.com/users/AliSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/AliSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliSoftware/subscriptions","organizations_url":"https://api.github.com/users/AliSoftware/orgs","repos_url":"https://api.github.com/users/AliSoftware/repos","events_url":"https://api.github.com/users/AliSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/AliSoftware/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T11:44:07Z","updated_at":"2016-01-15T11:44:07Z","body":"The `isPath` function checks for the URL **path**, as the name implies. Not the the whole URL."}}