{"action":"created","comment":{"url":"https://api.github.com/repos/pustovalov/app/pulls/comments/42931044","id":42931044,"diff_hunk":"@@ -0,0 +1,60 @@\n+require \"rails_helper\"\n+\n+describe \"Authorization\" do  \n+  let(:password) { attributes_for(:user)[:password] }\n+  let!(:user) { create(:user) }\n+  before do\n+    visit root_path\n+  end\n+  \n+  scenario \"opens successfully\" do\n+    expect(page.status_code).to be 200\n+  end\n+  \n+  describe \"sign up\" do\n+    scenario \"when valid\" do\n+      visit sign_up_path\n+      fill_in \"user_email\", with: \"11111@gmail.com\"\n+      fill_in \"user_password\", with: \"31232113131\"\n+      find(\".ac-signup-submit\").click\n+      expect(page).to have_content \"Log Out\"\n+    end\n+    \n+    scenario \"when no valid\" do\n+      visit sign_up_path\n+      fill_in \"user_email\", with: \"11111\"\n+      fill_in \"user_password\", with: \"31232113131\"\n+      find(\".ac-signup-submit\").click\n+      expect(page).to have_content \"is invalid\"\n+    end\n+  end\n+  \n+  describe \"login in\" do\n+    scenario \"when valid\" do\n+      visit log_in_path\n+      fill_in \"user_email\", with: user.email\n+      fill_in \"user_password\", with: password\n+      find(\".ac-login-submit\").click\n+      expect(page).to have_content \"Log Out\"\n+    end\n+    \n+    scenario \"when not valid\" do\n+      visit log_in_path\n+      fill_in \"user_email\", with: \"1231323\"\n+      fill_in \"user_password\", with: \"31231\"\n+      find(\".ac-login-submit\").click\n+      expect(page).to have_content \"E-mail and/or password is incorrect.\"\n+    end\n+  end\n+  \n+  describe \"login out\" do\n+    before do\n+      login user, password\n+    end\n+    ","path":"spec/features/authorization_spec.rb","position":54,"original_position":54,"commit_id":"d238687763930cfc1b4df7c43ed63ffcb540c034","original_commit_id":"d238687763930cfc1b4df7c43ed63ffcb540c034","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":"Trailing whitespace detected.","created_at":"2015-10-24T06:14:25Z","updated_at":"2015-10-24T06:14:25Z","html_url":"https://github.com/pustovalov/app/pull/10#discussion_r42931044","pull_request_url":"https://api.github.com/repos/pustovalov/app/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/pustovalov/app/pulls/comments/42931044"},"html":{"href":"https://github.com/pustovalov/app/pull/10#discussion_r42931044"},"pull_request":{"href":"https://api.github.com/repos/pustovalov/app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/pustovalov/app/pulls/10","id":48649912,"html_url":"https://github.com/pustovalov/app/pull/10","diff_url":"https://github.com/pustovalov/app/pull/10.diff","patch_url":"https://github.com/pustovalov/app/pull/10.patch","issue_url":"https://api.github.com/repos/pustovalov/app/issues/10","number":10,"state":"open","locked":false,"title":"Authorization","user":{"login":"pustovalov","id":1568885,"avatar_url":"https://avatars.githubusercontent.com/u/1568885?v=3","gravatar_id":"","url":"https://api.github.com/users/pustovalov","html_url":"https://github.com/pustovalov","followers_url":"https://api.github.com/users/pustovalov/followers","following_url":"https://api.github.com/users/pustovalov/following{/other_user}","gists_url":"https://api.github.com/users/pustovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pustovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustovalov/subscriptions","organizations_url":"https://api.github.com/users/pustovalov/orgs","repos_url":"https://api.github.com/users/pustovalov/repos","events_url":"https://api.github.com/users/pustovalov/events{/privacy}","received_events_url":"https://api.github.com/users/pustovalov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-24T06:14:16Z","updated_at":"2015-10-24T06:14:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6d9bee3a3dad14cd876980472b79510a0aab1d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pustovalov/app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/pustovalov/app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/pustovalov/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pustovalov/app/issues/10/comments","statuses_url":"https://api.github.com/repos/pustovalov/app/statuses/d238687763930cfc1b4df7c43ed63ffcb540c034","head":{"label":"pustovalov:authorization","ref":"authorization","sha":"d238687763930cfc1b4df7c43ed63ffcb540c034","user":{"login":"pustovalov","id":1568885,"avatar_url":"https://avatars.githubusercontent.com/u/1568885?v=3","gravatar_id":"","url":"https://api.github.com/users/pustovalov","html_url":"https://github.com/pustovalov","followers_url":"https://api.github.com/users/pustovalov/followers","following_url":"https://api.github.com/users/pustovalov/following{/other_user}","gists_url":"https://api.github.com/users/pustovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pustovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustovalov/subscriptions","organizations_url":"https://api.github.com/users/pustovalov/orgs","repos_url":"https://api.github.com/users/pustovalov/repos","events_url":"https://api.github.com/users/pustovalov/events{/privacy}","received_events_url":"https://api.github.com/users/pustovalov/received_events","type":"User","site_admin":false},"repo":{"id":43791908,"name":"app","full_name":"pustovalov/app","owner":{"login":"pustovalov","id":1568885,"avatar_url":"https://avatars.githubusercontent.com/u/1568885?v=3","gravatar_id":"","url":"https://api.github.com/users/pustovalov","html_url":"https://github.com/pustovalov","followers_url":"https://api.github.com/users/pustovalov/followers","following_url":"https://api.github.com/users/pustovalov/following{/other_user}","gists_url":"https://api.github.com/users/pustovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pustovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustovalov/subscriptions","organizations_url":"https://api.github.com/users/pustovalov/orgs","repos_url":"https://api.github.com/users/pustovalov/repos","events_url":"https://api.github.com/users/pustovalov/events{/privacy}","received_events_url":"https://api.github.com/users/pustovalov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pustovalov/app","description":"","fork":false,"url":"https://api.github.com/repos/pustovalov/app","forks_url":"https://api.github.com/repos/pustovalov/app/forks","keys_url":"https://api.github.com/repos/pustovalov/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pustovalov/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pustovalov/app/teams","hooks_url":"https://api.github.com/repos/pustovalov/app/hooks","issue_events_url":"https://api.github.com/repos/pustovalov/app/issues/events{/number}","events_url":"https://api.github.com/repos/pustovalov/app/events","assignees_url":"https://api.github.com/repos/pustovalov/app/assignees{/user}","branches_url":"https://api.github.com/repos/pustovalov/app/branches{/branch}","tags_url":"https://api.github.com/repos/pustovalov/app/tags","blobs_url":"https://api.github.com/repos/pustovalov/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pustovalov/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pustovalov/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/pustovalov/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pustovalov/app/statuses/{sha}","languages_url":"https://api.github.com/repos/pustovalov/app/languages","stargazers_url":"https://api.github.com/repos/pustovalov/app/stargazers","contributors_url":"https://api.github.com/repos/pustovalov/app/contributors","subscribers_url":"https://api.github.com/repos/pustovalov/app/subscribers","subscription_url":"https://api.github.com/repos/pustovalov/app/subscription","commits_url":"https://api.github.com/repos/pustovalov/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/pustovalov/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/pustovalov/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/pustovalov/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/pustovalov/app/contents/{+path}","compare_url":"https://api.github.com/repos/pustovalov/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pustovalov/app/merges","archive_url":"https://api.github.com/repos/pustovalov/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pustovalov/app/downloads","issues_url":"https://api.github.com/repos/pustovalov/app/issues{/number}","pulls_url":"https://api.github.com/repos/pustovalov/app/pulls{/number}","milestones_url":"https://api.github.com/repos/pustovalov/app/milestones{/number}","notifications_url":"https://api.github.com/repos/pustovalov/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pustovalov/app/labels{/name}","releases_url":"https://api.github.com/repos/pustovalov/app/releases{/id}","created_at":"2015-10-07T02:56:29Z","updated_at":"2015-10-07T03:04:33Z","pushed_at":"2015-10-24T06:14:16Z","git_url":"git://github.com/pustovalov/app.git","ssh_url":"git@github.com:pustovalov/app.git","clone_url":"https://github.com/pustovalov/app.git","svn_url":"https://github.com/pustovalov/app","homepage":null,"size":420,"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":"pustovalov:master","ref":"master","sha":"59a77268d2b1ce6a64da2b0e17c0dc90526e596a","user":{"login":"pustovalov","id":1568885,"avatar_url":"https://avatars.githubusercontent.com/u/1568885?v=3","gravatar_id":"","url":"https://api.github.com/users/pustovalov","html_url":"https://github.com/pustovalov","followers_url":"https://api.github.com/users/pustovalov/followers","following_url":"https://api.github.com/users/pustovalov/following{/other_user}","gists_url":"https://api.github.com/users/pustovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pustovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustovalov/subscriptions","organizations_url":"https://api.github.com/users/pustovalov/orgs","repos_url":"https://api.github.com/users/pustovalov/repos","events_url":"https://api.github.com/users/pustovalov/events{/privacy}","received_events_url":"https://api.github.com/users/pustovalov/received_events","type":"User","site_admin":false},"repo":{"id":43791908,"name":"app","full_name":"pustovalov/app","owner":{"login":"pustovalov","id":1568885,"avatar_url":"https://avatars.githubusercontent.com/u/1568885?v=3","gravatar_id":"","url":"https://api.github.com/users/pustovalov","html_url":"https://github.com/pustovalov","followers_url":"https://api.github.com/users/pustovalov/followers","following_url":"https://api.github.com/users/pustovalov/following{/other_user}","gists_url":"https://api.github.com/users/pustovalov/gists{/gist_id}","starred_url":"https://api.github.com/users/pustovalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pustovalov/subscriptions","organizations_url":"https://api.github.com/users/pustovalov/orgs","repos_url":"https://api.github.com/users/pustovalov/repos","events_url":"https://api.github.com/users/pustovalov/events{/privacy}","received_events_url":"https://api.github.com/users/pustovalov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pustovalov/app","description":"","fork":false,"url":"https://api.github.com/repos/pustovalov/app","forks_url":"https://api.github.com/repos/pustovalov/app/forks","keys_url":"https://api.github.com/repos/pustovalov/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pustovalov/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pustovalov/app/teams","hooks_url":"https://api.github.com/repos/pustovalov/app/hooks","issue_events_url":"https://api.github.com/repos/pustovalov/app/issues/events{/number}","events_url":"https://api.github.com/repos/pustovalov/app/events","assignees_url":"https://api.github.com/repos/pustovalov/app/assignees{/user}","branches_url":"https://api.github.com/repos/pustovalov/app/branches{/branch}","tags_url":"https://api.github.com/repos/pustovalov/app/tags","blobs_url":"https://api.github.com/repos/pustovalov/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pustovalov/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pustovalov/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/pustovalov/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pustovalov/app/statuses/{sha}","languages_url":"https://api.github.com/repos/pustovalov/app/languages","stargazers_url":"https://api.github.com/repos/pustovalov/app/stargazers","contributors_url":"https://api.github.com/repos/pustovalov/app/contributors","subscribers_url":"https://api.github.com/repos/pustovalov/app/subscribers","subscription_url":"https://api.github.com/repos/pustovalov/app/subscription","commits_url":"https://api.github.com/repos/pustovalov/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/pustovalov/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/pustovalov/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/pustovalov/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/pustovalov/app/contents/{+path}","compare_url":"https://api.github.com/repos/pustovalov/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pustovalov/app/merges","archive_url":"https://api.github.com/repos/pustovalov/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pustovalov/app/downloads","issues_url":"https://api.github.com/repos/pustovalov/app/issues{/number}","pulls_url":"https://api.github.com/repos/pustovalov/app/pulls{/number}","milestones_url":"https://api.github.com/repos/pustovalov/app/milestones{/number}","notifications_url":"https://api.github.com/repos/pustovalov/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pustovalov/app/labels{/name}","releases_url":"https://api.github.com/repos/pustovalov/app/releases{/id}","created_at":"2015-10-07T02:56:29Z","updated_at":"2015-10-07T03:04:33Z","pushed_at":"2015-10-24T06:14:16Z","git_url":"git://github.com/pustovalov/app.git","ssh_url":"git@github.com:pustovalov/app.git","clone_url":"https://github.com/pustovalov/app.git","svn_url":"https://github.com/pustovalov/app","homepage":null,"size":420,"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/pustovalov/app/pulls/10"},"html":{"href":"https://github.com/pustovalov/app/pull/10"},"issue":{"href":"https://api.github.com/repos/pustovalov/app/issues/10"},"comments":{"href":"https://api.github.com/repos/pustovalov/app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/pustovalov/app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/pustovalov/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pustovalov/app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/pustovalov/app/statuses/d238687763930cfc1b4df7c43ed63ffcb540c034"}}}}