{"action":"created","comment":{"url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments/57427080","id":57427080,"diff_hunk":"@@ -498,11 +498,14 @@ public function iShouldSeeTheSection($title)\n      */\n     public function theOptionsSectionShouldContainOption($expectedCount = 1)\n     {\n-        if ($expectedCount != $count = $this->getCurrentPage()->countOptions()) {\n-            throw $this->createExpectationException(\n-                sprintf('Expecting to see %d option, saw %d.', $expectedCount, $count)\n-            );\n-        }\n+        $this->spin(function () use ($expectedCount) {\n+            $count = $this->getCurrentPage()->countOptions();\n+            if ($expectedCount != $count) {\n+                throw new \\RuntimeException(sprintf('Expecting to see %d options, saw %d.', $expectedCount, $count));","path":"features/Context/WebUser.php","position":12,"original_position":12,"commit_id":"71b7f6d64f44c890b1ac35728795f9c388120291","original_commit_id":"71b7f6d64f44c890b1ac35728795f9c388120291","user":{"login":"jmleroux","id":1516770,"avatar_url":"https://avatars.githubusercontent.com/u/1516770?v=3","gravatar_id":"","url":"https://api.github.com/users/jmleroux","html_url":"https://github.com/jmleroux","followers_url":"https://api.github.com/users/jmleroux/followers","following_url":"https://api.github.com/users/jmleroux/following{/other_user}","gists_url":"https://api.github.com/users/jmleroux/gists{/gist_id}","starred_url":"https://api.github.com/users/jmleroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmleroux/subscriptions","organizations_url":"https://api.github.com/users/jmleroux/orgs","repos_url":"https://api.github.com/users/jmleroux/repos","events_url":"https://api.github.com/users/jmleroux/events{/privacy}","received_events_url":"https://api.github.com/users/jmleroux/received_events","type":"User","site_admin":false},"body":"It will be a TimeOutException anyway in the calling spin.","created_at":"2016-03-25T08:19:34Z","updated_at":"2016-03-25T08:19:34Z","html_url":"https://github.com/akeneo/pim-community-dev/pull/4180#discussion_r57427080","pull_request_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180","_links":{"self":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments/57427080"},"html":{"href":"https://github.com/akeneo/pim-community-dev/pull/4180#discussion_r57427080"},"pull_request":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180"}}},"pull_request":{"url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180","id":63390649,"html_url":"https://github.com/akeneo/pim-community-dev/pull/4180","diff_url":"https://github.com/akeneo/pim-community-dev/pull/4180.diff","patch_url":"https://github.com/akeneo/pim-community-dev/pull/4180.patch","issue_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/4180","number":4180,"state":"open","locked":false,"title":"Behat - Spin options count","user":{"login":"jmleroux","id":1516770,"avatar_url":"https://avatars.githubusercontent.com/u/1516770?v=3","gravatar_id":"","url":"https://api.github.com/users/jmleroux","html_url":"https://github.com/jmleroux","followers_url":"https://api.github.com/users/jmleroux/followers","following_url":"https://api.github.com/users/jmleroux/following{/other_user}","gists_url":"https://api.github.com/users/jmleroux/gists{/gist_id}","starred_url":"https://api.github.com/users/jmleroux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmleroux/subscriptions","organizations_url":"https://api.github.com/users/jmleroux/orgs","repos_url":"https://api.github.com/users/jmleroux/repos","events_url":"https://api.github.com/users/jmleroux/events{/privacy}","received_events_url":"https://api.github.com/users/jmleroux/received_events","type":"User","site_admin":false},"body":"We need to spin the options count to avoid failures on CI.\r\n\r\n| Q                                 | A\r\n| --------------------------------- | ---\r\n| Added Specs                       |n\r\n| Added Behats                      |y\r\n| Changelog updated                 |n\r\n| Review and 2 GTM                  |\r\n\r\n","created_at":"2016-03-18T15:23:54Z","updated_at":"2016-03-25T08:19:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e7f2027064d52ae14f938af49bc484ad3a28e0b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180/commits","review_comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180/comments","review_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/4180/comments","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/71b7f6d64f44c890b1ac35728795f9c388120291","head":{"label":"akeneo:jml-behat-ES","ref":"jml-behat-ES","sha":"71b7f6d64f44c890b1ac35728795f9c388120291","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":5367323,"name":"pim-community-dev","full_name":"akeneo/pim-community-dev","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/pim-community-dev","description":"[Community Development Repository] The open source Product Information Management (PIM)","fork":false,"url":"https://api.github.com/repos/akeneo/pim-community-dev","forks_url":"https://api.github.com/repos/akeneo/pim-community-dev/forks","keys_url":"https://api.github.com/repos/akeneo/pim-community-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/pim-community-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/pim-community-dev/teams","hooks_url":"https://api.github.com/repos/akeneo/pim-community-dev/hooks","issue_events_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/pim-community-dev/events","assignees_url":"https://api.github.com/repos/akeneo/pim-community-dev/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/pim-community-dev/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/tags","blobs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/pim-community-dev/languages","stargazers_url":"https://api.github.com/repos/akeneo/pim-community-dev/stargazers","contributors_url":"https://api.github.com/repos/akeneo/pim-community-dev/contributors","subscribers_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscribers","subscription_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscription","commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/pim-community-dev/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/pim-community-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/pim-community-dev/merges","archive_url":"https://api.github.com/repos/akeneo/pim-community-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/pim-community-dev/downloads","issues_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/pim-community-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/pim-community-dev/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/pim-community-dev/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/pim-community-dev/deployments","created_at":"2012-08-10T09:27:26Z","updated_at":"2016-03-25T03:53:51Z","pushed_at":"2016-03-25T08:17:30Z","git_url":"git://github.com/akeneo/pim-community-dev.git","ssh_url":"git@github.com:akeneo/pim-community-dev.git","clone_url":"https://github.com/akeneo/pim-community-dev.git","svn_url":"https://github.com/akeneo/pim-community-dev","homepage":"http://www.akeneo.com","size":139064,"stargazers_count":296,"watchers_count":296,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":115,"forks":155,"open_issues":115,"watchers":296,"default_branch":"master"}},"base":{"label":"akeneo:1.5","ref":"1.5","sha":"72144e9c38be93ee46ebddcff625bf54f56ebdd7","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":5367323,"name":"pim-community-dev","full_name":"akeneo/pim-community-dev","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars.githubusercontent.com/u/2510186?v=3","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/pim-community-dev","description":"[Community Development Repository] The open source Product Information Management (PIM)","fork":false,"url":"https://api.github.com/repos/akeneo/pim-community-dev","forks_url":"https://api.github.com/repos/akeneo/pim-community-dev/forks","keys_url":"https://api.github.com/repos/akeneo/pim-community-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/pim-community-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/pim-community-dev/teams","hooks_url":"https://api.github.com/repos/akeneo/pim-community-dev/hooks","issue_events_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/pim-community-dev/events","assignees_url":"https://api.github.com/repos/akeneo/pim-community-dev/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/pim-community-dev/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/tags","blobs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/pim-community-dev/languages","stargazers_url":"https://api.github.com/repos/akeneo/pim-community-dev/stargazers","contributors_url":"https://api.github.com/repos/akeneo/pim-community-dev/contributors","subscribers_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscribers","subscription_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscription","commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/pim-community-dev/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/pim-community-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/pim-community-dev/merges","archive_url":"https://api.github.com/repos/akeneo/pim-community-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/pim-community-dev/downloads","issues_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/pim-community-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/pim-community-dev/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/pim-community-dev/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/pim-community-dev/deployments","created_at":"2012-08-10T09:27:26Z","updated_at":"2016-03-25T03:53:51Z","pushed_at":"2016-03-25T08:17:30Z","git_url":"git://github.com/akeneo/pim-community-dev.git","ssh_url":"git@github.com:akeneo/pim-community-dev.git","clone_url":"https://github.com/akeneo/pim-community-dev.git","svn_url":"https://github.com/akeneo/pim-community-dev","homepage":"http://www.akeneo.com","size":139064,"stargazers_count":296,"watchers_count":296,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":115,"forks":155,"open_issues":115,"watchers":296,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180"},"html":{"href":"https://github.com/akeneo/pim-community-dev/pull/4180"},"issue":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/issues/4180"},"comments":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/issues/4180/comments"},"review_comments":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180/comments"},"review_comment":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/4180/commits"},"statuses":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/71b7f6d64f44c890b1ac35728795f9c388120291"}}}}