{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/panopticon/pulls/comments/30124768","id":30124768,"diff_hunk":"@@ -161,3 +172,26 @@\n When /^I try to create a new artefact with the same need$/ do\n   visit new_artefact_path(:artefact => {:need_id => @artefact.need_ids.first})\n end\n+\n+When /^I browse to the \"(.*)\" URL for the artefact$/ do |path|\n+  visit archive_artefact_path(@artefact)\n+end\n+\n+And /^I click the archive tab on the artefact page$/ do\n+  visit edit_artefact_path(@artefact)\n+  click_link \"Archive\"\n+end\n+\n+And /^I archive the existing artefact$/ do\n+  Artefact.observers.disable :update_search_observer do\n+    @artefact.update_attributes!('state' => 'archived')\n+  end\n+end\n+\n+Then /^I should not see the archive tab along with the edit and history tabs$/ do","path":"features/step_definitions/artefact_steps.rb","position":null,"original_position":38,"commit_id":"aef3bcfd35c6467d16d7b9b1d2930968998683f9","original_commit_id":"c59492e79b2e1662b2c841816a78a6c7b49e84d3","user":{"login":"issyl0","id":355033,"avatar_url":"https://avatars.githubusercontent.com/u/355033?v=3","gravatar_id":"","url":"https://api.github.com/users/issyl0","html_url":"https://github.com/issyl0","followers_url":"https://api.github.com/users/issyl0/followers","following_url":"https://api.github.com/users/issyl0/following{/other_user}","gists_url":"https://api.github.com/users/issyl0/gists{/gist_id}","starred_url":"https://api.github.com/users/issyl0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issyl0/subscriptions","organizations_url":"https://api.github.com/users/issyl0/orgs","repos_url":"https://api.github.com/users/issyl0/repos","events_url":"https://api.github.com/users/issyl0/events{/privacy}","received_events_url":"https://api.github.com/users/issyl0/received_events","type":"User","site_admin":false},"body":"Added!","created_at":"2015-05-12T11:30:35Z","updated_at":"2015-05-12T11:30:35Z","html_url":"https://github.com/alphagov/panopticon/pull/250#discussion_r30124768","pull_request_url":"https://api.github.com/repos/alphagov/panopticon/pulls/250","_links":{"self":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/comments/30124768"},"html":{"href":"https://github.com/alphagov/panopticon/pull/250#discussion_r30124768"},"pull_request":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/250"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/panopticon/pulls/250","id":34725265,"html_url":"https://github.com/alphagov/panopticon/pull/250","diff_url":"https://github.com/alphagov/panopticon/pull/250.diff","patch_url":"https://github.com/alphagov/panopticon/pull/250.patch","issue_url":"https://api.github.com/repos/alphagov/panopticon/issues/250","number":250,"state":"open","locked":false,"title":"Don't show the 'archive' tab for an archived artefact","user":{"login":"issyl0","id":355033,"avatar_url":"https://avatars.githubusercontent.com/u/355033?v=3","gravatar_id":"","url":"https://api.github.com/users/issyl0","html_url":"https://github.com/issyl0","followers_url":"https://api.github.com/users/issyl0/followers","following_url":"https://api.github.com/users/issyl0/following{/other_user}","gists_url":"https://api.github.com/users/issyl0/gists{/gist_id}","starred_url":"https://api.github.com/users/issyl0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issyl0/subscriptions","organizations_url":"https://api.github.com/users/issyl0/orgs","repos_url":"https://api.github.com/users/issyl0/repos","events_url":"https://api.github.com/users/issyl0/events{/privacy}","received_events_url":"https://api.github.com/users/issyl0/received_events","type":"User","site_admin":false},"body":"- Given you can't unarchive an artefact, being able to see the\r\n  'Archive' tab or page for an archived artefact seems unintuitive.\r\n- Test this behaviour with Cucumber features.\r\n\r\n(It's been a while since I've written any Cucumber...)","created_at":"2015-05-05T13:44:26Z","updated_at":"2015-05-12T11:30:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90b90a8d91ea426a80a515061f6b91d8c551acd1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/panopticon/pulls/250/commits","review_comments_url":"https://api.github.com/repos/alphagov/panopticon/pulls/250/comments","review_comment_url":"https://api.github.com/repos/alphagov/panopticon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/panopticon/issues/250/comments","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/aef3bcfd35c6467d16d7b9b1d2930968998683f9","head":{"label":"alphagov:remove_archive_tab_for_archived_pages","ref":"remove_archive_tab_for_archived_pages","sha":"aef3bcfd35c6467d16d7b9b1d2930968998683f9","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2100564,"name":"panopticon","full_name":"alphagov/panopticon","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/panopticon","description":"The know-all app","fork":false,"url":"https://api.github.com/repos/alphagov/panopticon","forks_url":"https://api.github.com/repos/alphagov/panopticon/forks","keys_url":"https://api.github.com/repos/alphagov/panopticon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/panopticon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/panopticon/teams","hooks_url":"https://api.github.com/repos/alphagov/panopticon/hooks","issue_events_url":"https://api.github.com/repos/alphagov/panopticon/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/panopticon/events","assignees_url":"https://api.github.com/repos/alphagov/panopticon/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/panopticon/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/panopticon/tags","blobs_url":"https://api.github.com/repos/alphagov/panopticon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/panopticon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/panopticon/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/panopticon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/panopticon/languages","stargazers_url":"https://api.github.com/repos/alphagov/panopticon/stargazers","contributors_url":"https://api.github.com/repos/alphagov/panopticon/contributors","subscribers_url":"https://api.github.com/repos/alphagov/panopticon/subscribers","subscription_url":"https://api.github.com/repos/alphagov/panopticon/subscription","commits_url":"https://api.github.com/repos/alphagov/panopticon/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/panopticon/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/panopticon/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/panopticon/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/panopticon/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/panopticon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/panopticon/merges","archive_url":"https://api.github.com/repos/alphagov/panopticon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/panopticon/downloads","issues_url":"https://api.github.com/repos/alphagov/panopticon/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/panopticon/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/panopticon/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/panopticon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/panopticon/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/panopticon/releases{/id}","created_at":"2011-07-25T11:29:09Z","updated_at":"2015-05-06T10:07:39Z","pushed_at":"2015-05-12T11:30:36Z","git_url":"git://github.com/alphagov/panopticon.git","ssh_url":"git@github.com:alphagov/panopticon.git","clone_url":"https://github.com/alphagov/panopticon.git","svn_url":"https://github.com/alphagov/panopticon","homepage":"","size":5763,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":15,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"de21d156bc42eb878ae3f31471a43961a45d823d","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2100564,"name":"panopticon","full_name":"alphagov/panopticon","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/panopticon","description":"The know-all app","fork":false,"url":"https://api.github.com/repos/alphagov/panopticon","forks_url":"https://api.github.com/repos/alphagov/panopticon/forks","keys_url":"https://api.github.com/repos/alphagov/panopticon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/panopticon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/panopticon/teams","hooks_url":"https://api.github.com/repos/alphagov/panopticon/hooks","issue_events_url":"https://api.github.com/repos/alphagov/panopticon/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/panopticon/events","assignees_url":"https://api.github.com/repos/alphagov/panopticon/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/panopticon/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/panopticon/tags","blobs_url":"https://api.github.com/repos/alphagov/panopticon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/panopticon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/panopticon/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/panopticon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/panopticon/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/panopticon/languages","stargazers_url":"https://api.github.com/repos/alphagov/panopticon/stargazers","contributors_url":"https://api.github.com/repos/alphagov/panopticon/contributors","subscribers_url":"https://api.github.com/repos/alphagov/panopticon/subscribers","subscription_url":"https://api.github.com/repos/alphagov/panopticon/subscription","commits_url":"https://api.github.com/repos/alphagov/panopticon/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/panopticon/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/panopticon/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/panopticon/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/panopticon/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/panopticon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/panopticon/merges","archive_url":"https://api.github.com/repos/alphagov/panopticon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/panopticon/downloads","issues_url":"https://api.github.com/repos/alphagov/panopticon/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/panopticon/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/panopticon/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/panopticon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/panopticon/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/panopticon/releases{/id}","created_at":"2011-07-25T11:29:09Z","updated_at":"2015-05-06T10:07:39Z","pushed_at":"2015-05-12T11:30:36Z","git_url":"git://github.com/alphagov/panopticon.git","ssh_url":"git@github.com:alphagov/panopticon.git","clone_url":"https://github.com/alphagov/panopticon.git","svn_url":"https://github.com/alphagov/panopticon","homepage":"","size":5763,"stargazers_count":15,"watchers_count":15,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/250"},"html":{"href":"https://github.com/alphagov/panopticon/pull/250"},"issue":{"href":"https://api.github.com/repos/alphagov/panopticon/issues/250"},"comments":{"href":"https://api.github.com/repos/alphagov/panopticon/issues/250/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/250/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/panopticon/pulls/250/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/panopticon/statuses/aef3bcfd35c6467d16d7b9b1d2930968998683f9"}}}}