{"action":"created","comment":{"url":"https://api.github.com/repos/odinsy/flashcards/pulls/comments/34816918","id":34816918,"diff_hunk":"@@ -0,0 +1,102 @@\n+require \"rails_helper\"\n+\n+describe \"the login/logout proccess\" do\n+\n+  let!(:user) { create(:user) }\n+\n+  it \"signs me in when user data are correct\" do\n+    login(\"user@example.com\", \"password\")\n+    expect(page).to have_content \"Login successful\"\n+  end\n+\n+  it \"fails when user data are wrong\" do\n+    login(\"user@example.com\", \"123\")\n+    expect(page).to have_content \"Login failed\"\n+  end\n+\n+  it \"sings me out\" do\n+    login(\"user@example.com\", \"password\")\n+    click_link \"Выйти\"\n+    expect(page).to have_content \"Войти\"\n+  end\n+\n+end\n+\n+describe \"the register proccess\" do\n+\n+  it \"registers an user when data are correct\" do\n+    register(\"user@example.com\", \"password\", \"password\")\n+    expect(page).to have_content \"Мои карточки\"\n+  end\n+\n+  it \"doesn't registers when user exists\" do\n+    @user = create(:user)\n+    register(\"user@example.com\", \"password\", \"password\")\n+    expect(page).to have_content \"has already been taken\"\n+  end\n+\n+  it \"doesn't registers when password and password confirmation are different\" do\n+    register(\"user@example.com\", \"password\", \"pass\")\n+    expect(page).to have_content \"doesn't match Password\"\n+  end\n+\n+end\n+\n+describe \"show/edit user page\" do\n+\n+  before :each do\n+    @user = create(:user)\n+  end\n+\n+  context \"when the user is not logged\" do\n+\n+    it \"doesn't shows the user's page\" do\n+      visit user_path(@user)\n+      expect(page).to have_content \"You have to authenticate to access this page!\"\n+    end\n+\n+    it \"doesn't shows the edit page\" do\n+      visit edit_user_path(@user)\n+      expect(page).to have_content \"You have to authenticate to access this page!\"\n+    end\n+","path":"spec/features/user_spec.rb","position":62,"original_position":62,"commit_id":"743d3fae9f9dd10b7cd71a7b5d9bbc9c027fb014","original_commit_id":"743d3fae9f9dd10b7cd71a7b5d9bbc9c027fb014","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":"Extra empty line detected at block body end.","created_at":"2015-07-16T17:52:52Z","updated_at":"2015-07-16T17:52:52Z","html_url":"https://github.com/odinsy/flashcards/pull/9#discussion_r34816918","pull_request_url":"https://api.github.com/repos/odinsy/flashcards/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/odinsy/flashcards/pulls/comments/34816918"},"html":{"href":"https://github.com/odinsy/flashcards/pull/9#discussion_r34816918"},"pull_request":{"href":"https://api.github.com/repos/odinsy/flashcards/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/odinsy/flashcards/pulls/9","id":40156712,"html_url":"https://github.com/odinsy/flashcards/pull/9","diff_url":"https://github.com/odinsy/flashcards/pull/9.diff","patch_url":"https://github.com/odinsy/flashcards/pull/9.patch","issue_url":"https://api.github.com/repos/odinsy/flashcards/issues/9","number":9,"state":"open","locked":false,"title":"Added Sorcery's simple password authentication and external authentication via Github.","user":{"login":"odinsy","id":12398444,"avatar_url":"https://avatars.githubusercontent.com/u/12398444?v=3","gravatar_id":"","url":"https://api.github.com/users/odinsy","html_url":"https://github.com/odinsy","followers_url":"https://api.github.com/users/odinsy/followers","following_url":"https://api.github.com/users/odinsy/following{/other_user}","gists_url":"https://api.github.com/users/odinsy/gists{/gist_id}","starred_url":"https://api.github.com/users/odinsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odinsy/subscriptions","organizations_url":"https://api.github.com/users/odinsy/orgs","repos_url":"https://api.github.com/users/odinsy/repos","events_url":"https://api.github.com/users/odinsy/events{/privacy}","received_events_url":"https://api.github.com/users/odinsy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-16T17:52:37Z","updated_at":"2015-07-16T17:52:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fc2ea2de8eb2359b93512737faeb11d1c757e0c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/odinsy/flashcards/pulls/9/commits","review_comments_url":"https://api.github.com/repos/odinsy/flashcards/pulls/9/comments","review_comment_url":"https://api.github.com/repos/odinsy/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odinsy/flashcards/issues/9/comments","statuses_url":"https://api.github.com/repos/odinsy/flashcards/statuses/743d3fae9f9dd10b7cd71a7b5d9bbc9c027fb014","head":{"label":"odinsy:ninth-task","ref":"ninth-task","sha":"743d3fae9f9dd10b7cd71a7b5d9bbc9c027fb014","user":{"login":"odinsy","id":12398444,"avatar_url":"https://avatars.githubusercontent.com/u/12398444?v=3","gravatar_id":"","url":"https://api.github.com/users/odinsy","html_url":"https://github.com/odinsy","followers_url":"https://api.github.com/users/odinsy/followers","following_url":"https://api.github.com/users/odinsy/following{/other_user}","gists_url":"https://api.github.com/users/odinsy/gists{/gist_id}","starred_url":"https://api.github.com/users/odinsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odinsy/subscriptions","organizations_url":"https://api.github.com/users/odinsy/orgs","repos_url":"https://api.github.com/users/odinsy/repos","events_url":"https://api.github.com/users/odinsy/events{/privacy}","received_events_url":"https://api.github.com/users/odinsy/received_events","type":"User","site_admin":false},"repo":{"id":36316663,"name":"flashcards","full_name":"odinsy/flashcards","owner":{"login":"odinsy","id":12398444,"avatar_url":"https://avatars.githubusercontent.com/u/12398444?v=3","gravatar_id":"","url":"https://api.github.com/users/odinsy","html_url":"https://github.com/odinsy","followers_url":"https://api.github.com/users/odinsy/followers","following_url":"https://api.github.com/users/odinsy/following{/other_user}","gists_url":"https://api.github.com/users/odinsy/gists{/gist_id}","starred_url":"https://api.github.com/users/odinsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odinsy/subscriptions","organizations_url":"https://api.github.com/users/odinsy/orgs","repos_url":"https://api.github.com/users/odinsy/repos","events_url":"https://api.github.com/users/odinsy/events{/privacy}","received_events_url":"https://api.github.com/users/odinsy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/odinsy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/odinsy/flashcards","forks_url":"https://api.github.com/repos/odinsy/flashcards/forks","keys_url":"https://api.github.com/repos/odinsy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odinsy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odinsy/flashcards/teams","hooks_url":"https://api.github.com/repos/odinsy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/odinsy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/odinsy/flashcards/events","assignees_url":"https://api.github.com/repos/odinsy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/odinsy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/odinsy/flashcards/tags","blobs_url":"https://api.github.com/repos/odinsy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odinsy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odinsy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/odinsy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odinsy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/odinsy/flashcards/languages","stargazers_url":"https://api.github.com/repos/odinsy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/odinsy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/odinsy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/odinsy/flashcards/subscription","commits_url":"https://api.github.com/repos/odinsy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/odinsy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/odinsy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/odinsy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/odinsy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/odinsy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odinsy/flashcards/merges","archive_url":"https://api.github.com/repos/odinsy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odinsy/flashcards/downloads","issues_url":"https://api.github.com/repos/odinsy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/odinsy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/odinsy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/odinsy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odinsy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/odinsy/flashcards/releases{/id}","created_at":"2015-05-26T18:48:22Z","updated_at":"2015-05-27T11:38:00Z","pushed_at":"2015-07-16T17:52:37Z","git_url":"git://github.com/odinsy/flashcards.git","ssh_url":"git@github.com:odinsy/flashcards.git","clone_url":"https://github.com/odinsy/flashcards.git","svn_url":"https://github.com/odinsy/flashcards","homepage":null,"size":540,"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":"odinsy:master","ref":"master","sha":"0a55da38c36206d1386dd41978a69d435650b6ea","user":{"login":"odinsy","id":12398444,"avatar_url":"https://avatars.githubusercontent.com/u/12398444?v=3","gravatar_id":"","url":"https://api.github.com/users/odinsy","html_url":"https://github.com/odinsy","followers_url":"https://api.github.com/users/odinsy/followers","following_url":"https://api.github.com/users/odinsy/following{/other_user}","gists_url":"https://api.github.com/users/odinsy/gists{/gist_id}","starred_url":"https://api.github.com/users/odinsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odinsy/subscriptions","organizations_url":"https://api.github.com/users/odinsy/orgs","repos_url":"https://api.github.com/users/odinsy/repos","events_url":"https://api.github.com/users/odinsy/events{/privacy}","received_events_url":"https://api.github.com/users/odinsy/received_events","type":"User","site_admin":false},"repo":{"id":36316663,"name":"flashcards","full_name":"odinsy/flashcards","owner":{"login":"odinsy","id":12398444,"avatar_url":"https://avatars.githubusercontent.com/u/12398444?v=3","gravatar_id":"","url":"https://api.github.com/users/odinsy","html_url":"https://github.com/odinsy","followers_url":"https://api.github.com/users/odinsy/followers","following_url":"https://api.github.com/users/odinsy/following{/other_user}","gists_url":"https://api.github.com/users/odinsy/gists{/gist_id}","starred_url":"https://api.github.com/users/odinsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odinsy/subscriptions","organizations_url":"https://api.github.com/users/odinsy/orgs","repos_url":"https://api.github.com/users/odinsy/repos","events_url":"https://api.github.com/users/odinsy/events{/privacy}","received_events_url":"https://api.github.com/users/odinsy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/odinsy/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/odinsy/flashcards","forks_url":"https://api.github.com/repos/odinsy/flashcards/forks","keys_url":"https://api.github.com/repos/odinsy/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odinsy/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odinsy/flashcards/teams","hooks_url":"https://api.github.com/repos/odinsy/flashcards/hooks","issue_events_url":"https://api.github.com/repos/odinsy/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/odinsy/flashcards/events","assignees_url":"https://api.github.com/repos/odinsy/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/odinsy/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/odinsy/flashcards/tags","blobs_url":"https://api.github.com/repos/odinsy/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odinsy/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odinsy/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/odinsy/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odinsy/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/odinsy/flashcards/languages","stargazers_url":"https://api.github.com/repos/odinsy/flashcards/stargazers","contributors_url":"https://api.github.com/repos/odinsy/flashcards/contributors","subscribers_url":"https://api.github.com/repos/odinsy/flashcards/subscribers","subscription_url":"https://api.github.com/repos/odinsy/flashcards/subscription","commits_url":"https://api.github.com/repos/odinsy/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/odinsy/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/odinsy/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/odinsy/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/odinsy/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/odinsy/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odinsy/flashcards/merges","archive_url":"https://api.github.com/repos/odinsy/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odinsy/flashcards/downloads","issues_url":"https://api.github.com/repos/odinsy/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/odinsy/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/odinsy/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/odinsy/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odinsy/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/odinsy/flashcards/releases{/id}","created_at":"2015-05-26T18:48:22Z","updated_at":"2015-05-27T11:38:00Z","pushed_at":"2015-07-16T17:52:37Z","git_url":"git://github.com/odinsy/flashcards.git","ssh_url":"git@github.com:odinsy/flashcards.git","clone_url":"https://github.com/odinsy/flashcards.git","svn_url":"https://github.com/odinsy/flashcards","homepage":null,"size":540,"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/odinsy/flashcards/pulls/9"},"html":{"href":"https://github.com/odinsy/flashcards/pull/9"},"issue":{"href":"https://api.github.com/repos/odinsy/flashcards/issues/9"},"comments":{"href":"https://api.github.com/repos/odinsy/flashcards/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/odinsy/flashcards/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/odinsy/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odinsy/flashcards/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/odinsy/flashcards/statuses/743d3fae9f9dd10b7cd71a7b5d9bbc9c027fb014"}}}}