{"action":"created","comment":{"url":"https://api.github.com/repos/Vixtir/flashcards/pulls/comments/51315827","id":51315827,"diff_hunk":"@@ -0,0 +1,86 @@\n+require \"rails_helper\"\n+\n+describe \"User\", type: \"feature\" do\n+  let(:user) { FactoryGirl.build(:user)  }  \n+\n+  describe \"enter on the site first time\" do\n+    it \"has a meassage about login\" do\n+      visit root_path\n+      expect(page).to have_content \"Please login or register!!!\"\n+    end\n+ \n+    it \"has a link for registration\" do\n+      visit root_path\n+      expect(page).to have_selector(\"#register\")\n+    end\n+    \n+    it \"have no logout link\" do\n+      visit root_path\n+      expect(page).not_to have_selector(\"#logout\")\n+    end\n+    \n+    it \"has a Facebook login link\" do\n+      visit root_path\n+      expect(page).to have_content \"Login with Facebook\"\n+    end\n+  end\n+  \n+\n+  describe \"#registration\" do\n+    it \"valid\" do\n+      visit root_path\n+      click_link(\"register\")\n+      fill_in \"Email\", with: user.email\n+      fill_in \"Password\", with: user.password\n+      fill_in \"Password confirmation\", with: user.password_confirmation\n+      click_button \"Create User\"\n+      expect(page).to have_content \"User has been created\" \n+    end\n+    \n+    it \"invalid\" do\n+      visit root_path\n+      click_link(\"register\")\n+      click_button \"Create User\"\n+      expect(page).to have_content \"errors\"\n+    end\n+  end\n+  \n+  describe \"#login\" do\n+    let(:user) { FactoryGirl.create(:user)  }\n+\n+    it \"valid\" do\n+\n+      visit root_path\n+      fill_in \"Email\", with: user.email\n+      fill_in \"Password\", with: \"password\" \n+      click_button \"Login\"\n+      expect(page).to have_content \"Login succefull\"\n+    end\n+ ","path":"spec/features/user_spec.rb","position":59,"original_position":59,"commit_id":"5b7399134b98ad8564a22f8698049372fa4e231e","original_commit_id":"5b7399134b98ad8564a22f8698049372fa4e231e","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":"2016-01-29T21:07:49Z","updated_at":"2016-01-29T21:07:49Z","html_url":"https://github.com/Vixtir/flashcards/pull/9#discussion_r51315827","pull_request_url":"https://api.github.com/repos/Vixtir/flashcards/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Vixtir/flashcards/pulls/comments/51315827"},"html":{"href":"https://github.com/Vixtir/flashcards/pull/9#discussion_r51315827"},"pull_request":{"href":"https://api.github.com/repos/Vixtir/flashcards/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Vixtir/flashcards/pulls/9","id":57702004,"html_url":"https://github.com/Vixtir/flashcards/pull/9","diff_url":"https://github.com/Vixtir/flashcards/pull/9.diff","patch_url":"https://github.com/Vixtir/flashcards/pull/9.patch","issue_url":"https://api.github.com/repos/Vixtir/flashcards/issues/9","number":9,"state":"open","locked":false,"title":"sorcery","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-29T20:59:55Z","updated_at":"2016-01-29T21:07:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57314fb16004f6b63527ac03fc6a26017314fd2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Vixtir/flashcards/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Vixtir/flashcards/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Vixtir/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vixtir/flashcards/issues/9/comments","statuses_url":"https://api.github.com/repos/Vixtir/flashcards/statuses/5b7399134b98ad8564a22f8698049372fa4e231e","head":{"label":"Vixtir:ninth-task","ref":"ninth-task","sha":"5b7399134b98ad8564a22f8698049372fa4e231e","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"repo":{"id":49513324,"name":"flashcards","full_name":"Vixtir/flashcards","owner":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vixtir/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/Vixtir/flashcards","forks_url":"https://api.github.com/repos/Vixtir/flashcards/forks","keys_url":"https://api.github.com/repos/Vixtir/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vixtir/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vixtir/flashcards/teams","hooks_url":"https://api.github.com/repos/Vixtir/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Vixtir/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Vixtir/flashcards/events","assignees_url":"https://api.github.com/repos/Vixtir/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Vixtir/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Vixtir/flashcards/tags","blobs_url":"https://api.github.com/repos/Vixtir/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vixtir/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vixtir/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vixtir/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vixtir/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Vixtir/flashcards/languages","stargazers_url":"https://api.github.com/repos/Vixtir/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Vixtir/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Vixtir/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Vixtir/flashcards/subscription","commits_url":"https://api.github.com/repos/Vixtir/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vixtir/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vixtir/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vixtir/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vixtir/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Vixtir/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vixtir/flashcards/merges","archive_url":"https://api.github.com/repos/Vixtir/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vixtir/flashcards/downloads","issues_url":"https://api.github.com/repos/Vixtir/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Vixtir/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Vixtir/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Vixtir/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vixtir/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Vixtir/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/Vixtir/flashcards/deployments","created_at":"2016-01-12T16:31:41Z","updated_at":"2016-01-12T20:03:45Z","pushed_at":"2016-01-29T21:07:18Z","git_url":"git://github.com/Vixtir/flashcards.git","ssh_url":"git@github.com:Vixtir/flashcards.git","clone_url":"https://github.com/Vixtir/flashcards.git","svn_url":"https://github.com/Vixtir/flashcards","homepage":null,"size":204,"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":"Vixtir:master","ref":"master","sha":"1f260c0285e8e53c125c13f6712b4119b59e573f","user":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"repo":{"id":49513324,"name":"flashcards","full_name":"Vixtir/flashcards","owner":{"login":"Vixtir","id":11517469,"avatar_url":"https://avatars.githubusercontent.com/u/11517469?v=3","gravatar_id":"","url":"https://api.github.com/users/Vixtir","html_url":"https://github.com/Vixtir","followers_url":"https://api.github.com/users/Vixtir/followers","following_url":"https://api.github.com/users/Vixtir/following{/other_user}","gists_url":"https://api.github.com/users/Vixtir/gists{/gist_id}","starred_url":"https://api.github.com/users/Vixtir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vixtir/subscriptions","organizations_url":"https://api.github.com/users/Vixtir/orgs","repos_url":"https://api.github.com/users/Vixtir/repos","events_url":"https://api.github.com/users/Vixtir/events{/privacy}","received_events_url":"https://api.github.com/users/Vixtir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vixtir/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/Vixtir/flashcards","forks_url":"https://api.github.com/repos/Vixtir/flashcards/forks","keys_url":"https://api.github.com/repos/Vixtir/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vixtir/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vixtir/flashcards/teams","hooks_url":"https://api.github.com/repos/Vixtir/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Vixtir/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Vixtir/flashcards/events","assignees_url":"https://api.github.com/repos/Vixtir/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Vixtir/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Vixtir/flashcards/tags","blobs_url":"https://api.github.com/repos/Vixtir/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vixtir/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vixtir/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vixtir/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vixtir/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Vixtir/flashcards/languages","stargazers_url":"https://api.github.com/repos/Vixtir/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Vixtir/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Vixtir/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Vixtir/flashcards/subscription","commits_url":"https://api.github.com/repos/Vixtir/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vixtir/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vixtir/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vixtir/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vixtir/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Vixtir/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vixtir/flashcards/merges","archive_url":"https://api.github.com/repos/Vixtir/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vixtir/flashcards/downloads","issues_url":"https://api.github.com/repos/Vixtir/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Vixtir/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Vixtir/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Vixtir/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vixtir/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Vixtir/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/Vixtir/flashcards/deployments","created_at":"2016-01-12T16:31:41Z","updated_at":"2016-01-12T20:03:45Z","pushed_at":"2016-01-29T21:07:18Z","git_url":"git://github.com/Vixtir/flashcards.git","ssh_url":"git@github.com:Vixtir/flashcards.git","clone_url":"https://github.com/Vixtir/flashcards.git","svn_url":"https://github.com/Vixtir/flashcards","homepage":null,"size":204,"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/Vixtir/flashcards/pulls/9"},"html":{"href":"https://github.com/Vixtir/flashcards/pull/9"},"issue":{"href":"https://api.github.com/repos/Vixtir/flashcards/issues/9"},"comments":{"href":"https://api.github.com/repos/Vixtir/flashcards/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Vixtir/flashcards/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Vixtir/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vixtir/flashcards/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Vixtir/flashcards/statuses/5b7399134b98ad8564a22f8698049372fa4e231e"}}}}