{"action":"created","comment":{"url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments/28151817","id":28151817,"diff_hunk":"@@ -46,6 +46,31 @@ Feature: Matching arguments\n       |     expected: (1, anything, /bar/)               |\n       |          got: (1, nil, \"other\")                  |\n \n+  Scenario: Using a RSpec matcher\n+    Given a file named \"rspec_matcher_spec.rb\" with:\n+      \"\"\"ruby\n+      RSpec.describe \"Using a RSpec matcher\" do\n+        let(:dbl) { double }\n+        before { expect(dbl).to receive(:foo).with(contain_exactly(1, 2)) }","path":"features/setting_constraints/matching_arguments.feature","position":9,"original_position":9,"commit_id":"d45c2fc4191130666792a3e750408b5eb48a3fc7","original_commit_id":"d45c2fc4191130666792a3e750408b5eb48a3fc7","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"body":"Let's use `a_collection_containing_exactly` rather than `contain_exactly`.  The former is an alias rspec-expectations provides for when you need a noun form to make grammatical sense (it also changes how the matcher is described):\r\n\r\nhttp://rspec.info/documentation/3.2/rspec-expectations/RSpec/Matchers.html#contain_exactly-instance_method","created_at":"2015-04-10T15:04:26Z","updated_at":"2015-04-10T15:04:26Z","html_url":"https://github.com/rspec/rspec-mocks/pull/925#discussion_r28151817","pull_request_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925","_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments/28151817"},"html":{"href":"https://github.com/rspec/rspec-mocks/pull/925#discussion_r28151817"},"pull_request":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925"}}},"pull_request":{"url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925","id":33054478,"html_url":"https://github.com/rspec/rspec-mocks/pull/925","diff_url":"https://github.com/rspec/rspec-mocks/pull/925.diff","patch_url":"https://github.com/rspec/rspec-mocks/pull/925.patch","issue_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/925","number":925,"state":"open","locked":false,"title":"Matching arguments with RSpec matchers","user":{"login":"samnang","id":131172,"avatar_url":"https://avatars.githubusercontent.com/u/131172?v=3","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false},"body":"It's just an improvement in the doc. It's base on my problem that I didn't realize that we could use RSpec matcher in matching arguments on this page https://www.relishapp.com/rspec/rspec-mocks/v/3-2/docs/setting-constraints/matching-arguments\r\n\r\nBase on conversation with @myronmarston [1], I suggest to add another scenario to make it clearer even those there is no any different from using custom matcher which is we already have scenario in term of behavior correctness. \r\n\r\n https://twitter.com/samnangchhun/status/586069627207192576","created_at":"2015-04-10T15:01:19Z","updated_at":"2015-04-10T15:04:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fd9c1ce9dcec64d69bf6ecfad827384c09ea788","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925/commits","review_comments_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925/comments","review_comment_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/925/comments","statuses_url":"https://api.github.com/repos/rspec/rspec-mocks/statuses/d45c2fc4191130666792a3e750408b5eb48a3fc7","head":{"label":"samnang:matching_arguments_with_rspec_matcher","ref":"matching_arguments_with_rspec_matcher","sha":"d45c2fc4191130666792a3e750408b5eb48a3fc7","user":{"login":"samnang","id":131172,"avatar_url":"https://avatars.githubusercontent.com/u/131172?v=3","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false},"repo":{"id":33718657,"name":"rspec-mocks","full_name":"samnang/rspec-mocks","owner":{"login":"samnang","id":131172,"avatar_url":"https://avatars.githubusercontent.com/u/131172?v=3","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samnang/rspec-mocks","description":"RSpec's 'test double' framework, with support for stubbing and mocking","fork":true,"url":"https://api.github.com/repos/samnang/rspec-mocks","forks_url":"https://api.github.com/repos/samnang/rspec-mocks/forks","keys_url":"https://api.github.com/repos/samnang/rspec-mocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samnang/rspec-mocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samnang/rspec-mocks/teams","hooks_url":"https://api.github.com/repos/samnang/rspec-mocks/hooks","issue_events_url":"https://api.github.com/repos/samnang/rspec-mocks/issues/events{/number}","events_url":"https://api.github.com/repos/samnang/rspec-mocks/events","assignees_url":"https://api.github.com/repos/samnang/rspec-mocks/assignees{/user}","branches_url":"https://api.github.com/repos/samnang/rspec-mocks/branches{/branch}","tags_url":"https://api.github.com/repos/samnang/rspec-mocks/tags","blobs_url":"https://api.github.com/repos/samnang/rspec-mocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samnang/rspec-mocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samnang/rspec-mocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/samnang/rspec-mocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samnang/rspec-mocks/statuses/{sha}","languages_url":"https://api.github.com/repos/samnang/rspec-mocks/languages","stargazers_url":"https://api.github.com/repos/samnang/rspec-mocks/stargazers","contributors_url":"https://api.github.com/repos/samnang/rspec-mocks/contributors","subscribers_url":"https://api.github.com/repos/samnang/rspec-mocks/subscribers","subscription_url":"https://api.github.com/repos/samnang/rspec-mocks/subscription","commits_url":"https://api.github.com/repos/samnang/rspec-mocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/samnang/rspec-mocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/samnang/rspec-mocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/samnang/rspec-mocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/samnang/rspec-mocks/contents/{+path}","compare_url":"https://api.github.com/repos/samnang/rspec-mocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samnang/rspec-mocks/merges","archive_url":"https://api.github.com/repos/samnang/rspec-mocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samnang/rspec-mocks/downloads","issues_url":"https://api.github.com/repos/samnang/rspec-mocks/issues{/number}","pulls_url":"https://api.github.com/repos/samnang/rspec-mocks/pulls{/number}","milestones_url":"https://api.github.com/repos/samnang/rspec-mocks/milestones{/number}","notifications_url":"https://api.github.com/repos/samnang/rspec-mocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samnang/rspec-mocks/labels{/name}","releases_url":"https://api.github.com/repos/samnang/rspec-mocks/releases{/id}","created_at":"2015-04-10T08:54:46Z","updated_at":"2015-04-10T08:54:47Z","pushed_at":"2015-04-10T14:46:09Z","git_url":"git://github.com/samnang/rspec-mocks.git","ssh_url":"git@github.com:samnang/rspec-mocks.git","clone_url":"https://github.com/samnang/rspec-mocks.git","svn_url":"https://github.com/samnang/rspec-mocks","homepage":"http://relishapp.com/rspec/rspec-mocks","size":13482,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rspec:master","ref":"master","sha":"077e377bf690a1b4435ba1649600bcbd8823145e","user":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"repo":{"id":238983,"name":"rspec-mocks","full_name":"rspec/rspec-mocks","owner":{"login":"rspec","id":22388,"avatar_url":"https://avatars.githubusercontent.com/u/22388?v=3","gravatar_id":"","url":"https://api.github.com/users/rspec","html_url":"https://github.com/rspec","followers_url":"https://api.github.com/users/rspec/followers","following_url":"https://api.github.com/users/rspec/following{/other_user}","gists_url":"https://api.github.com/users/rspec/gists{/gist_id}","starred_url":"https://api.github.com/users/rspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rspec/subscriptions","organizations_url":"https://api.github.com/users/rspec/orgs","repos_url":"https://api.github.com/users/rspec/repos","events_url":"https://api.github.com/users/rspec/events{/privacy}","received_events_url":"https://api.github.com/users/rspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rspec/rspec-mocks","description":"RSpec's 'test double' framework, with support for stubbing and mocking","fork":false,"url":"https://api.github.com/repos/rspec/rspec-mocks","forks_url":"https://api.github.com/repos/rspec/rspec-mocks/forks","keys_url":"https://api.github.com/repos/rspec/rspec-mocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rspec/rspec-mocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rspec/rspec-mocks/teams","hooks_url":"https://api.github.com/repos/rspec/rspec-mocks/hooks","issue_events_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/events{/number}","events_url":"https://api.github.com/repos/rspec/rspec-mocks/events","assignees_url":"https://api.github.com/repos/rspec/rspec-mocks/assignees{/user}","branches_url":"https://api.github.com/repos/rspec/rspec-mocks/branches{/branch}","tags_url":"https://api.github.com/repos/rspec/rspec-mocks/tags","blobs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rspec/rspec-mocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rspec/rspec-mocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/rspec/rspec-mocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rspec/rspec-mocks/statuses/{sha}","languages_url":"https://api.github.com/repos/rspec/rspec-mocks/languages","stargazers_url":"https://api.github.com/repos/rspec/rspec-mocks/stargazers","contributors_url":"https://api.github.com/repos/rspec/rspec-mocks/contributors","subscribers_url":"https://api.github.com/repos/rspec/rspec-mocks/subscribers","subscription_url":"https://api.github.com/repos/rspec/rspec-mocks/subscription","commits_url":"https://api.github.com/repos/rspec/rspec-mocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/rspec/rspec-mocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/rspec/rspec-mocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/rspec/rspec-mocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/rspec/rspec-mocks/contents/{+path}","compare_url":"https://api.github.com/repos/rspec/rspec-mocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rspec/rspec-mocks/merges","archive_url":"https://api.github.com/repos/rspec/rspec-mocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rspec/rspec-mocks/downloads","issues_url":"https://api.github.com/repos/rspec/rspec-mocks/issues{/number}","pulls_url":"https://api.github.com/repos/rspec/rspec-mocks/pulls{/number}","milestones_url":"https://api.github.com/repos/rspec/rspec-mocks/milestones{/number}","notifications_url":"https://api.github.com/repos/rspec/rspec-mocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rspec/rspec-mocks/labels{/name}","releases_url":"https://api.github.com/repos/rspec/rspec-mocks/releases{/id}","created_at":"2009-06-29T15:56:06Z","updated_at":"2015-04-10T01:13:59Z","pushed_at":"2015-04-10T15:01:19Z","git_url":"git://github.com/rspec/rspec-mocks.git","ssh_url":"git@github.com:rspec/rspec-mocks.git","clone_url":"https://github.com/rspec/rspec-mocks.git","svn_url":"https://github.com/rspec/rspec-mocks","homepage":"http://relishapp.com/rspec/rspec-mocks","size":13482,"stargazers_count":532,"watchers_count":532,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":194,"mirror_url":null,"open_issues_count":15,"forks":194,"open_issues":15,"watchers":532,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925"},"html":{"href":"https://github.com/rspec/rspec-mocks/pull/925"},"issue":{"href":"https://api.github.com/repos/rspec/rspec-mocks/issues/925"},"comments":{"href":"https://api.github.com/repos/rspec/rspec-mocks/issues/925/comments"},"review_comments":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925/comments"},"review_comment":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rspec/rspec-mocks/pulls/925/commits"},"statuses":{"href":"https://api.github.com/repos/rspec/rspec-mocks/statuses/d45c2fc4191130666792a3e750408b5eb48a3fc7"}}}}