{"action":"created","comment":{"url":"https://api.github.com/repos/netguru/reminders/pulls/comments/52999277","id":52999277,"diff_hunk":"@@ -0,0 +1,35 @@\n+require \"rails_helper\"\n+\n+feature \"filtering projects\", js: true do\n+  let(:user) { create(:admin) }\n+  let(:projects_page) { Projects::ProjectsPage.new }\n+  let!(:project_active) { create(:project) }\n+  let!(:project_archived) { create(:project, archived_at: '2000-01-01') }\n+\n+  before do\n+    log_in(user)\n+    visit projects_path\n+  end\n+\n+  context \"user is filtering projects\" do\n+    scenario \"user visits page with default filtering\" do\n+      expect(page).to have_content project_active.name\n+      expect(page).not_to have_content project_archived.name\n+    end\n+    scenario \"user uses filter 'All'\" do\n+      click_link('All')\n+      expect(page).to have_content project_active.name\n+      expect(page).to have_content project_archived.name\n+    end\n+    scenario \"user uses filter 'Archived'\" do\n+      click_link('Archived')","path":"spec/features/filetring_projects_spec.rb","position":25,"original_position":25,"commit_id":"2aa9951bcb1624a42f87cb8bbbef37b4e118eff5","original_commit_id":"2aa9951bcb1624a42f87cb8bbbef37b4e118eff5","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-02-16T11:33:27Z","updated_at":"2016-02-16T11:33:27Z","html_url":"https://github.com/netguru/reminders/pull/24#discussion_r52999277","pull_request_url":"https://api.github.com/repos/netguru/reminders/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/netguru/reminders/pulls/comments/52999277"},"html":{"href":"https://github.com/netguru/reminders/pull/24#discussion_r52999277"},"pull_request":{"href":"https://api.github.com/repos/netguru/reminders/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/netguru/reminders/pulls/24","id":59356728,"html_url":"https://github.com/netguru/reminders/pull/24","diff_url":"https://github.com/netguru/reminders/pull/24.diff","patch_url":"https://github.com/netguru/reminders/pull/24.patch","issue_url":"https://api.github.com/repos/netguru/reminders/issues/24","number":24,"state":"open","locked":false,"title":"Add new filter options and tabs order for projects","user":{"login":"szymonbaranowski","id":6731008,"avatar_url":"https://avatars.githubusercontent.com/u/6731008?v=3","gravatar_id":"","url":"https://api.github.com/users/szymonbaranowski","html_url":"https://github.com/szymonbaranowski","followers_url":"https://api.github.com/users/szymonbaranowski/followers","following_url":"https://api.github.com/users/szymonbaranowski/following{/other_user}","gists_url":"https://api.github.com/users/szymonbaranowski/gists{/gist_id}","starred_url":"https://api.github.com/users/szymonbaranowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szymonbaranowski/subscriptions","organizations_url":"https://api.github.com/users/szymonbaranowski/orgs","repos_url":"https://api.github.com/users/szymonbaranowski/repos","events_url":"https://api.github.com/users/szymonbaranowski/events{/privacy}","received_events_url":"https://api.github.com/users/szymonbaranowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-15T12:20:29Z","updated_at":"2016-02-16T11:33:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b263fd573f46750da96e44573427119539251040","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/netguru/reminders/pulls/24/commits","review_comments_url":"https://api.github.com/repos/netguru/reminders/pulls/24/comments","review_comment_url":"https://api.github.com/repos/netguru/reminders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru/reminders/issues/24/comments","statuses_url":"https://api.github.com/repos/netguru/reminders/statuses/2aa9951bcb1624a42f87cb8bbbef37b4e118eff5","head":{"label":"netguru:new-filters-for-projects","ref":"new-filters-for-projects","sha":"2aa9951bcb1624a42f87cb8bbbef37b4e118eff5","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":34285834,"name":"reminders","full_name":"netguru/reminders","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/reminders","description":"you won't forget to get things done anymore - we will remind you!","fork":false,"url":"https://api.github.com/repos/netguru/reminders","forks_url":"https://api.github.com/repos/netguru/reminders/forks","keys_url":"https://api.github.com/repos/netguru/reminders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/reminders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/reminders/teams","hooks_url":"https://api.github.com/repos/netguru/reminders/hooks","issue_events_url":"https://api.github.com/repos/netguru/reminders/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/reminders/events","assignees_url":"https://api.github.com/repos/netguru/reminders/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/reminders/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/reminders/tags","blobs_url":"https://api.github.com/repos/netguru/reminders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/reminders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/reminders/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/reminders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/reminders/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/reminders/languages","stargazers_url":"https://api.github.com/repos/netguru/reminders/stargazers","contributors_url":"https://api.github.com/repos/netguru/reminders/contributors","subscribers_url":"https://api.github.com/repos/netguru/reminders/subscribers","subscription_url":"https://api.github.com/repos/netguru/reminders/subscription","commits_url":"https://api.github.com/repos/netguru/reminders/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/reminders/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/reminders/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/reminders/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/reminders/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/reminders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/reminders/merges","archive_url":"https://api.github.com/repos/netguru/reminders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/reminders/downloads","issues_url":"https://api.github.com/repos/netguru/reminders/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/reminders/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/reminders/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/reminders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/reminders/labels{/name}","releases_url":"https://api.github.com/repos/netguru/reminders/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/reminders/deployments","created_at":"2015-04-20T20:52:46Z","updated_at":"2016-02-11T17:24:56Z","pushed_at":"2016-02-16T11:33:22Z","git_url":"git://github.com/netguru/reminders.git","ssh_url":"git@github.com:netguru/reminders.git","clone_url":"https://github.com/netguru/reminders.git","svn_url":"https://github.com/netguru/reminders","homepage":"https://netguru.co/opensource","size":612,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"netguru:master","ref":"master","sha":"9614f348669c05eedaaa365b70ab83a5c7fa62ec","user":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"repo":{"id":34285834,"name":"reminders","full_name":"netguru/reminders","owner":{"login":"netguru","id":1146,"avatar_url":"https://avatars.githubusercontent.com/u/1146?v=3","gravatar_id":"","url":"https://api.github.com/users/netguru","html_url":"https://github.com/netguru","followers_url":"https://api.github.com/users/netguru/followers","following_url":"https://api.github.com/users/netguru/following{/other_user}","gists_url":"https://api.github.com/users/netguru/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru/subscriptions","organizations_url":"https://api.github.com/users/netguru/orgs","repos_url":"https://api.github.com/users/netguru/repos","events_url":"https://api.github.com/users/netguru/events{/privacy}","received_events_url":"https://api.github.com/users/netguru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru/reminders","description":"you won't forget to get things done anymore - we will remind you!","fork":false,"url":"https://api.github.com/repos/netguru/reminders","forks_url":"https://api.github.com/repos/netguru/reminders/forks","keys_url":"https://api.github.com/repos/netguru/reminders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru/reminders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru/reminders/teams","hooks_url":"https://api.github.com/repos/netguru/reminders/hooks","issue_events_url":"https://api.github.com/repos/netguru/reminders/issues/events{/number}","events_url":"https://api.github.com/repos/netguru/reminders/events","assignees_url":"https://api.github.com/repos/netguru/reminders/assignees{/user}","branches_url":"https://api.github.com/repos/netguru/reminders/branches{/branch}","tags_url":"https://api.github.com/repos/netguru/reminders/tags","blobs_url":"https://api.github.com/repos/netguru/reminders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru/reminders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru/reminders/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru/reminders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru/reminders/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru/reminders/languages","stargazers_url":"https://api.github.com/repos/netguru/reminders/stargazers","contributors_url":"https://api.github.com/repos/netguru/reminders/contributors","subscribers_url":"https://api.github.com/repos/netguru/reminders/subscribers","subscription_url":"https://api.github.com/repos/netguru/reminders/subscription","commits_url":"https://api.github.com/repos/netguru/reminders/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru/reminders/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru/reminders/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru/reminders/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru/reminders/contents/{+path}","compare_url":"https://api.github.com/repos/netguru/reminders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru/reminders/merges","archive_url":"https://api.github.com/repos/netguru/reminders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru/reminders/downloads","issues_url":"https://api.github.com/repos/netguru/reminders/issues{/number}","pulls_url":"https://api.github.com/repos/netguru/reminders/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru/reminders/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru/reminders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru/reminders/labels{/name}","releases_url":"https://api.github.com/repos/netguru/reminders/releases{/id}","deployments_url":"https://api.github.com/repos/netguru/reminders/deployments","created_at":"2015-04-20T20:52:46Z","updated_at":"2016-02-11T17:24:56Z","pushed_at":"2016-02-16T11:33:22Z","git_url":"git://github.com/netguru/reminders.git","ssh_url":"git@github.com:netguru/reminders.git","clone_url":"https://github.com/netguru/reminders.git","svn_url":"https://github.com/netguru/reminders","homepage":"https://netguru.co/opensource","size":612,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru/reminders/pulls/24"},"html":{"href":"https://github.com/netguru/reminders/pull/24"},"issue":{"href":"https://api.github.com/repos/netguru/reminders/issues/24"},"comments":{"href":"https://api.github.com/repos/netguru/reminders/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru/reminders/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru/reminders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru/reminders/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/netguru/reminders/statuses/2aa9951bcb1624a42f87cb8bbbef37b4e118eff5"}}}}