{"action":"created","comment":{"url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/comments/46786114","id":46786114,"diff_hunk":"@@ -0,0 +1,71 @@\n+require 'rails_helper'\n+require 'support/helpers/login_helper.rb'\n+include LoginHelper\n+\n+feature 'User try enter to Admin dashboard' do\n+  describe 'when user is not logged in' do\n+    it 'should redirect to login path' do\n+      visit admin_root_path\n+      expect(page).to have_content(I18n.t('.sing_up_label'))\n+    end\n+  end\n+\n+  describe 'when user logged in as admin' do\n+    let!(:current_user) { create(:user, :admin) }\n+\n+    before(:each) do\n+      visit root_path\n+      login('test@test.com', '12345', 'Войти')\n+      visit admin_root_path\n+    end\n+\n+    it 'and open admin dashboard' do\n+      # binding.pry\n+      expect(page).to have_content('Flashcards Admin Panel')\n+    end\n+  end\n+\n+end\n+# describe \"User enters admin area\" do\n+#   let(:login_and_enter) do\n+#     visit login_path\n+#     login(\"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(\"Войти\")","path":"spec/features/admin_dashboard_spec.rb","position":42,"original_position":42,"commit_id":"f6b68ae4107f790ee97a463f58c3e8daf1059f89","original_commit_id":"f6b68ae4107f790ee97a463f58c3e8daf1059f89","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":"Use only ascii symbols in comments.","created_at":"2015-12-07T04:32:43Z","updated_at":"2015-12-07T04:32:43Z","html_url":"https://github.com/AlekseyGR/flashcards/pull/5#discussion_r46786114","pull_request_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/comments/46786114"},"html":{"href":"https://github.com/AlekseyGR/flashcards/pull/5#discussion_r46786114"},"pull_request":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5","id":52783421,"html_url":"https://github.com/AlekseyGR/flashcards/pull/5","diff_url":"https://github.com/AlekseyGR/flashcards/pull/5.diff","patch_url":"https://github.com/AlekseyGR/flashcards/pull/5.patch","issue_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/5","number":5,"state":"open","locked":false,"title":"Features/add admin panel","user":{"login":"AlekseyGR","id":7346436,"avatar_url":"https://avatars.githubusercontent.com/u/7346436?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyGR","html_url":"https://github.com/AlekseyGR","followers_url":"https://api.github.com/users/AlekseyGR/followers","following_url":"https://api.github.com/users/AlekseyGR/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyGR/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyGR/subscriptions","organizations_url":"https://api.github.com/users/AlekseyGR/orgs","repos_url":"https://api.github.com/users/AlekseyGR/repos","events_url":"https://api.github.com/users/AlekseyGR/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyGR/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-06T16:15:38Z","updated_at":"2015-12-07T04:32:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d153cbf2607d2eb87ac7e7baf6099d1c105e04a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/5/comments","statuses_url":"https://api.github.com/repos/AlekseyGR/flashcards/statuses/f6b68ae4107f790ee97a463f58c3e8daf1059f89","head":{"label":"AlekseyGR:features/add-admin-panel","ref":"features/add-admin-panel","sha":"f6b68ae4107f790ee97a463f58c3e8daf1059f89","user":{"login":"AlekseyGR","id":7346436,"avatar_url":"https://avatars.githubusercontent.com/u/7346436?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyGR","html_url":"https://github.com/AlekseyGR","followers_url":"https://api.github.com/users/AlekseyGR/followers","following_url":"https://api.github.com/users/AlekseyGR/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyGR/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyGR/subscriptions","organizations_url":"https://api.github.com/users/AlekseyGR/orgs","repos_url":"https://api.github.com/users/AlekseyGR/repos","events_url":"https://api.github.com/users/AlekseyGR/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyGR/received_events","type":"User","site_admin":false},"repo":{"id":46265652,"name":"flashcards","full_name":"AlekseyGR/flashcards","owner":{"login":"AlekseyGR","id":7346436,"avatar_url":"https://avatars.githubusercontent.com/u/7346436?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyGR","html_url":"https://github.com/AlekseyGR","followers_url":"https://api.github.com/users/AlekseyGR/followers","following_url":"https://api.github.com/users/AlekseyGR/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyGR/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyGR/subscriptions","organizations_url":"https://api.github.com/users/AlekseyGR/orgs","repos_url":"https://api.github.com/users/AlekseyGR/repos","events_url":"https://api.github.com/users/AlekseyGR/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyGR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlekseyGR/flashcards","description":"training rails project for growing my developer skills","fork":false,"url":"https://api.github.com/repos/AlekseyGR/flashcards","forks_url":"https://api.github.com/repos/AlekseyGR/flashcards/forks","keys_url":"https://api.github.com/repos/AlekseyGR/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlekseyGR/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlekseyGR/flashcards/teams","hooks_url":"https://api.github.com/repos/AlekseyGR/flashcards/hooks","issue_events_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/AlekseyGR/flashcards/events","assignees_url":"https://api.github.com/repos/AlekseyGR/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/AlekseyGR/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/AlekseyGR/flashcards/tags","blobs_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlekseyGR/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/AlekseyGR/flashcards/languages","stargazers_url":"https://api.github.com/repos/AlekseyGR/flashcards/stargazers","contributors_url":"https://api.github.com/repos/AlekseyGR/flashcards/contributors","subscribers_url":"https://api.github.com/repos/AlekseyGR/flashcards/subscribers","subscription_url":"https://api.github.com/repos/AlekseyGR/flashcards/subscription","commits_url":"https://api.github.com/repos/AlekseyGR/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlekseyGR/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlekseyGR/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/AlekseyGR/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlekseyGR/flashcards/merges","archive_url":"https://api.github.com/repos/AlekseyGR/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlekseyGR/flashcards/downloads","issues_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/AlekseyGR/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/AlekseyGR/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlekseyGR/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/AlekseyGR/flashcards/releases{/id}","created_at":"2015-11-16T09:44:58Z","updated_at":"2015-11-16T09:50:41Z","pushed_at":"2015-12-07T04:32:35Z","git_url":"git://github.com/AlekseyGR/flashcards.git","ssh_url":"git@github.com:AlekseyGR/flashcards.git","clone_url":"https://github.com/AlekseyGR/flashcards.git","svn_url":"https://github.com/AlekseyGR/flashcards","homepage":null,"size":120,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AlekseyGR:master","ref":"master","sha":"6b36dccfeb8b7aa2817273c9a964678b16693172","user":{"login":"AlekseyGR","id":7346436,"avatar_url":"https://avatars.githubusercontent.com/u/7346436?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyGR","html_url":"https://github.com/AlekseyGR","followers_url":"https://api.github.com/users/AlekseyGR/followers","following_url":"https://api.github.com/users/AlekseyGR/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyGR/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyGR/subscriptions","organizations_url":"https://api.github.com/users/AlekseyGR/orgs","repos_url":"https://api.github.com/users/AlekseyGR/repos","events_url":"https://api.github.com/users/AlekseyGR/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyGR/received_events","type":"User","site_admin":false},"repo":{"id":46265652,"name":"flashcards","full_name":"AlekseyGR/flashcards","owner":{"login":"AlekseyGR","id":7346436,"avatar_url":"https://avatars.githubusercontent.com/u/7346436?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyGR","html_url":"https://github.com/AlekseyGR","followers_url":"https://api.github.com/users/AlekseyGR/followers","following_url":"https://api.github.com/users/AlekseyGR/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyGR/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyGR/subscriptions","organizations_url":"https://api.github.com/users/AlekseyGR/orgs","repos_url":"https://api.github.com/users/AlekseyGR/repos","events_url":"https://api.github.com/users/AlekseyGR/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyGR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlekseyGR/flashcards","description":"training rails project for growing my developer skills","fork":false,"url":"https://api.github.com/repos/AlekseyGR/flashcards","forks_url":"https://api.github.com/repos/AlekseyGR/flashcards/forks","keys_url":"https://api.github.com/repos/AlekseyGR/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlekseyGR/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlekseyGR/flashcards/teams","hooks_url":"https://api.github.com/repos/AlekseyGR/flashcards/hooks","issue_events_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/AlekseyGR/flashcards/events","assignees_url":"https://api.github.com/repos/AlekseyGR/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/AlekseyGR/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/AlekseyGR/flashcards/tags","blobs_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlekseyGR/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/AlekseyGR/flashcards/languages","stargazers_url":"https://api.github.com/repos/AlekseyGR/flashcards/stargazers","contributors_url":"https://api.github.com/repos/AlekseyGR/flashcards/contributors","subscribers_url":"https://api.github.com/repos/AlekseyGR/flashcards/subscribers","subscription_url":"https://api.github.com/repos/AlekseyGR/flashcards/subscription","commits_url":"https://api.github.com/repos/AlekseyGR/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlekseyGR/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlekseyGR/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlekseyGR/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/AlekseyGR/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlekseyGR/flashcards/merges","archive_url":"https://api.github.com/repos/AlekseyGR/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlekseyGR/flashcards/downloads","issues_url":"https://api.github.com/repos/AlekseyGR/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/AlekseyGR/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/AlekseyGR/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/AlekseyGR/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlekseyGR/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/AlekseyGR/flashcards/releases{/id}","created_at":"2015-11-16T09:44:58Z","updated_at":"2015-11-16T09:50:41Z","pushed_at":"2015-12-07T04:32:35Z","git_url":"git://github.com/AlekseyGR/flashcards.git","ssh_url":"git@github.com:AlekseyGR/flashcards.git","clone_url":"https://github.com/AlekseyGR/flashcards.git","svn_url":"https://github.com/AlekseyGR/flashcards","homepage":null,"size":120,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5"},"html":{"href":"https://github.com/AlekseyGR/flashcards/pull/5"},"issue":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/issues/5"},"comments":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/AlekseyGR/flashcards/statuses/f6b68ae4107f790ee97a463f58c3e8daf1059f89"}}}}