{"action":"created","comment":{"url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/comments/25955279","id":25955279,"diff_hunk":"@@ -98,3 +101,11 @@\n   ]\n   expect(@report.smart).to match_array(expected_smart)\n end\n+\n+When(/^I view dashboard$/) do\n+  dashboard.load\n+end\n+\n+Then(/^I cannot create a new report$/) do\n+  expect(@dashboard.has_create_new_report?).to eq(false)","path":"features/step_definitions/employee_creates_and_changes_objectives_steps.rb","position":18,"original_position":18,"commit_id":"a00c19a68daf526dd507e37498be73eb92120bf6","original_commit_id":"a00c19a68daf526dd507e37498be73eb92120bf6","user":{"login":"robmckinnon","id":3447,"avatar_url":"https://avatars.githubusercontent.com/u/3447?v=3","gravatar_id":"","url":"https://api.github.com/users/robmckinnon","html_url":"https://github.com/robmckinnon","followers_url":"https://api.github.com/users/robmckinnon/followers","following_url":"https://api.github.com/users/robmckinnon/following{/other_user}","gists_url":"https://api.github.com/users/robmckinnon/gists{/gist_id}","starred_url":"https://api.github.com/users/robmckinnon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmckinnon/subscriptions","organizations_url":"https://api.github.com/users/robmckinnon/orgs","repos_url":"https://api.github.com/users/robmckinnon/repos","events_url":"https://api.github.com/users/robmckinnon/events{/privacy}","received_events_url":"https://api.github.com/users/robmckinnon/received_events","type":"User","site_admin":false},"body":"I find the first version easier to read and understand.","created_at":"2015-03-06T16:13:44Z","updated_at":"2015-03-06T16:13:44Z","html_url":"https://github.com/ministryofjustice/scs_performance/pull/23#discussion_r25955279","pull_request_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/comments/25955279"},"html":{"href":"https://github.com/ministryofjustice/scs_performance/pull/23#discussion_r25955279"},"pull_request":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23","id":30652008,"html_url":"https://github.com/ministryofjustice/scs_performance/pull/23","diff_url":"https://github.com/ministryofjustice/scs_performance/pull/23.diff","patch_url":"https://github.com/ministryofjustice/scs_performance/pull/23.patch","issue_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/23","number":23,"state":"open","locked":false,"title":"Prevent user creating more than one open report.","user":{"login":"robmckinnon","id":3447,"avatar_url":"https://avatars.githubusercontent.com/u/3447?v=3","gravatar_id":"","url":"https://api.github.com/users/robmckinnon","html_url":"https://github.com/robmckinnon","followers_url":"https://api.github.com/users/robmckinnon/followers","following_url":"https://api.github.com/users/robmckinnon/following{/other_user}","gists_url":"https://api.github.com/users/robmckinnon/gists{/gist_id}","starred_url":"https://api.github.com/users/robmckinnon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robmckinnon/subscriptions","organizations_url":"https://api.github.com/users/robmckinnon/orgs","repos_url":"https://api.github.com/users/robmckinnon/repos","events_url":"https://api.github.com/users/robmckinnon/events{/privacy}","received_events_url":"https://api.github.com/users/robmckinnon/received_events","type":"User","site_admin":false},"body":"* Only show create new report link, when other reports are end-year approved.\r\n* When user has open report, redirect new report url to edit report url.","created_at":"2015-03-06T15:16:28Z","updated_at":"2015-03-06T16:13:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4388923a482affb0ecc809d1219ddda3815beafa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/23/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/scs_performance/statuses/a00c19a68daf526dd507e37498be73eb92120bf6","head":{"label":"ministryofjustice:one-active-report","ref":"one-active-report","sha":"a00c19a68daf526dd507e37498be73eb92120bf6","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":29201621,"name":"scs_performance","full_name":"ministryofjustice/scs_performance","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/scs_performance","description":"SCS Appraisals forms for objectives, mid-year, and end-of-year reviews","fork":false,"url":"https://api.github.com/repos/ministryofjustice/scs_performance","forks_url":"https://api.github.com/repos/ministryofjustice/scs_performance/forks","keys_url":"https://api.github.com/repos/ministryofjustice/scs_performance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/scs_performance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/scs_performance/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/scs_performance/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/scs_performance/events","assignees_url":"https://api.github.com/repos/ministryofjustice/scs_performance/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/scs_performance/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/scs_performance/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/scs_performance/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/scs_performance/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/scs_performance/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/scs_performance/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/scs_performance/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/scs_performance/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/scs_performance/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/scs_performance/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/scs_performance/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/scs_performance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/scs_performance/merges","archive_url":"https://api.github.com/repos/ministryofjustice/scs_performance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/scs_performance/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/scs_performance/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/scs_performance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/scs_performance/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/scs_performance/releases{/id}","created_at":"2015-01-13T17:21:01Z","updated_at":"2015-03-06T12:13:23Z","pushed_at":"2015-03-06T15:51:59Z","git_url":"git://github.com/ministryofjustice/scs_performance.git","ssh_url":"git@github.com:ministryofjustice/scs_performance.git","clone_url":"https://github.com/ministryofjustice/scs_performance.git","svn_url":"https://github.com/ministryofjustice/scs_performance","homepage":null,"size":832,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"f690760744631ae892ce114655e580c38dc88596","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":29201621,"name":"scs_performance","full_name":"ministryofjustice/scs_performance","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/scs_performance","description":"SCS Appraisals forms for objectives, mid-year, and end-of-year reviews","fork":false,"url":"https://api.github.com/repos/ministryofjustice/scs_performance","forks_url":"https://api.github.com/repos/ministryofjustice/scs_performance/forks","keys_url":"https://api.github.com/repos/ministryofjustice/scs_performance/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/scs_performance/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/scs_performance/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/scs_performance/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/scs_performance/events","assignees_url":"https://api.github.com/repos/ministryofjustice/scs_performance/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/scs_performance/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/scs_performance/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/scs_performance/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/scs_performance/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/scs_performance/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/scs_performance/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/scs_performance/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/scs_performance/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/scs_performance/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/scs_performance/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/scs_performance/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/scs_performance/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/scs_performance/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/scs_performance/merges","archive_url":"https://api.github.com/repos/ministryofjustice/scs_performance/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/scs_performance/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/scs_performance/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/scs_performance/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/scs_performance/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/scs_performance/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/scs_performance/releases{/id}","created_at":"2015-01-13T17:21:01Z","updated_at":"2015-03-06T12:13:23Z","pushed_at":"2015-03-06T15:51:59Z","git_url":"git://github.com/ministryofjustice/scs_performance.git","ssh_url":"git@github.com:ministryofjustice/scs_performance.git","clone_url":"https://github.com/ministryofjustice/scs_performance.git","svn_url":"https://github.com/ministryofjustice/scs_performance","homepage":null,"size":832,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23"},"html":{"href":"https://github.com/ministryofjustice/scs_performance/pull/23"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/23"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/scs_performance/statuses/a00c19a68daf526dd507e37498be73eb92120bf6"}}}}