{"action":"created","issue":{"url":"https://api.github.com/repos/freerange/mocha/issues/217","labels_url":"https://api.github.com/repos/freerange/mocha/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/freerange/mocha/issues/217/comments","events_url":"https://api.github.com/repos/freerange/mocha/issues/217/events","html_url":"https://github.com/freerange/mocha/pull/217","id":59571465,"number":217,"title":"Allow `includes` matcher to take matcher arguments.","user":{"login":"lazyatom","id":145,"avatar_url":"https://avatars.githubusercontent.com/u/145?v=3","gravatar_id":"","url":"https://api.github.com/users/lazyatom","html_url":"https://github.com/lazyatom","followers_url":"https://api.github.com/users/lazyatom/followers","following_url":"https://api.github.com/users/lazyatom/following{/other_user}","gists_url":"https://api.github.com/users/lazyatom/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyatom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyatom/subscriptions","organizations_url":"https://api.github.com/users/lazyatom/orgs","repos_url":"https://api.github.com/users/lazyatom/repos","events_url":"https://api.github.com/users/lazyatom/events{/privacy}","received_events_url":"https://api.github.com/users/lazyatom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-02T23:47:11Z","updated_at":"2015-03-04T21:38:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/freerange/mocha/pulls/217","html_url":"https://github.com/freerange/mocha/pull/217","diff_url":"https://github.com/freerange/mocha/pull/217.diff","patch_url":"https://github.com/freerange/mocha/pull/217.patch"},"body":"We should be able to created a matcher of the form:\r\n\r\n    object.expects(:foo).with(includes(has_entry(:key, 'value')))\r\n\r\nand successfully match this against a method call like:\r\n\r\n    object.foo([:a, :b, {:key => value}, :c])\r\n\r\nHopefully this makes sense; let me know if you've already considered functionality like this but decided against it."},"comment":{"url":"https://api.github.com/repos/freerange/mocha/issues/comments/77254955","html_url":"https://github.com/freerange/mocha/pull/217#issuecomment-77254955","issue_url":"https://api.github.com/repos/freerange/mocha/issues/217","id":77254955,"user":{"login":"floehopper","id":3169,"avatar_url":"https://avatars.githubusercontent.com/u/3169?v=3","gravatar_id":"","url":"https://api.github.com/users/floehopper","html_url":"https://github.com/floehopper","followers_url":"https://api.github.com/users/floehopper/followers","following_url":"https://api.github.com/users/floehopper/following{/other_user}","gists_url":"https://api.github.com/users/floehopper/gists{/gist_id}","starred_url":"https://api.github.com/users/floehopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floehopper/subscriptions","organizations_url":"https://api.github.com/users/floehopper/orgs","repos_url":"https://api.github.com/users/floehopper/repos","events_url":"https://api.github.com/users/floehopper/events{/privacy}","received_events_url":"https://api.github.com/users/floehopper/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T21:38:47Z","updated_at":"2015-03-04T21:38:47Z","body":"@lazyatom: Thanks for doing all this. I've just noticed that both `Range` and `Module` implement a `#include?` method. I'm guessing your new implementation will work with both of these. Do you think that's right?"}}