{"action":"created","comment":{"url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments/41151829","id":41151829,"diff_hunk":"@@ -0,0 +1,45 @@\n+require \"rails_helper\"\n+require \"support/helpers/login_helper.rb\"\n+include LoginHelper\n+\n+describe \"User enters admin area\" do\n+\n+  let(:login_and_enter) do\n+    login_with(\"test@test.com\", \"12345\", \"Войти\")\n+    visit admin_root_path\n+  end\n+\n+  context \"when not authenticated\" do\n+    before do\n+      visit admin_root_path\n+    end\n+\n+    it \"redirects to login\" do\n+      expect(page).to have_content(\"Войти\")\n+    end\n+  end\n+\n+  context \"when authenticated but not as admin\" do\n+    let!(:user) { create(:user) }\n+\n+    before do\n+      login_and_enter\n+    end\n+\n+    it \"shows proper alert message\" do\n+      expect(page).to have_content(\"Вы не авторизованы для выполнения данного действия.\")","path":"spec/features/active_admin/dashboard_spec.rb","position":30,"original_position":30,"commit_id":"c5b59f239ee29eb03df010df45da3faf9682c2b6","original_commit_id":"c5b59f239ee29eb03df010df45da3faf9682c2b6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [89/80]","created_at":"2015-10-05T14:45:15Z","updated_at":"2015-10-05T14:45:15Z","html_url":"https://github.com/ArmadilloXX/flashcards/pull/5#discussion_r41151829","pull_request_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments/41151829"},"html":{"href":"https://github.com/ArmadilloXX/flashcards/pull/5#discussion_r41151829"},"pull_request":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5","id":46789411,"html_url":"https://github.com/ArmadilloXX/flashcards/pull/5","diff_url":"https://github.com/ArmadilloXX/flashcards/pull/5.diff","patch_url":"https://github.com/ArmadilloXX/flashcards/pull/5.patch","issue_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/5","number":5,"state":"open","locked":false,"title":"Third task is completed","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T14:45:05Z","updated_at":"2015-10-05T14:45:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c08c3bd1a1541d5c6a58d114817f47ba69700082","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/5/comments","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/c5b59f239ee29eb03df010df45da3faf9682c2b6","head":{"label":"ArmadilloXX:third_task","ref":"third_task","sha":"c5b59f239ee29eb03df010df45da3faf9682c2b6","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"repo":{"id":42848111,"name":"flashcards","full_name":"ArmadilloXX/flashcards","owner":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArmadilloXX/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ArmadilloXX/flashcards","forks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/forks","keys_url":"https://api.github.com/repos/ArmadilloXX/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArmadilloXX/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArmadilloXX/flashcards/teams","hooks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/events","assignees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ArmadilloXX/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/tags","blobs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ArmadilloXX/flashcards/languages","stargazers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscription","commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ArmadilloXX/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArmadilloXX/flashcards/merges","archive_url":"https://api.github.com/repos/ArmadilloXX/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArmadilloXX/flashcards/downloads","issues_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ArmadilloXX/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ArmadilloXX/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArmadilloXX/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ArmadilloXX/flashcards/releases{/id}","created_at":"2015-09-21T06:32:52Z","updated_at":"2015-09-21T06:34:53Z","pushed_at":"2015-10-05T14:45:05Z","git_url":"git://github.com/ArmadilloXX/flashcards.git","ssh_url":"git@github.com:ArmadilloXX/flashcards.git","clone_url":"https://github.com/ArmadilloXX/flashcards.git","svn_url":"https://github.com/ArmadilloXX/flashcards","homepage":null,"size":425,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ArmadilloXX:master","ref":"master","sha":"f53e386db294dad26eb292e9b5a1244fa88e09c8","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"repo":{"id":42848111,"name":"flashcards","full_name":"ArmadilloXX/flashcards","owner":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArmadilloXX/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ArmadilloXX/flashcards","forks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/forks","keys_url":"https://api.github.com/repos/ArmadilloXX/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArmadilloXX/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArmadilloXX/flashcards/teams","hooks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/events","assignees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ArmadilloXX/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/tags","blobs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ArmadilloXX/flashcards/languages","stargazers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscription","commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ArmadilloXX/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArmadilloXX/flashcards/merges","archive_url":"https://api.github.com/repos/ArmadilloXX/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArmadilloXX/flashcards/downloads","issues_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ArmadilloXX/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ArmadilloXX/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArmadilloXX/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ArmadilloXX/flashcards/releases{/id}","created_at":"2015-09-21T06:32:52Z","updated_at":"2015-09-21T06:34:53Z","pushed_at":"2015-10-05T14:45:05Z","git_url":"git://github.com/ArmadilloXX/flashcards.git","ssh_url":"git@github.com:ArmadilloXX/flashcards.git","clone_url":"https://github.com/ArmadilloXX/flashcards.git","svn_url":"https://github.com/ArmadilloXX/flashcards","homepage":null,"size":425,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5"},"html":{"href":"https://github.com/ArmadilloXX/flashcards/pull/5"},"issue":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/5"},"comments":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/c5b59f239ee29eb03df010df45da3faf9682c2b6"}}}}