{"action":"created","comment":{"url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/comments/60446137","id":60446137,"diff_hunk":"@@ -0,0 +1,53 @@\n+require 'rails_helper'\n+\n+feature \"user creates a course\" do\n+  context \"user is signed in\" do\n+    before(:each) do\n+      clear_users\n+      @user = FactoryGirl.create(:user, username: 'Tiger')\n+      visit new_user_session_path\n+      fill_in 'Username/Email', with: 'Tiger'\n+      fill_in 'Password', with: 'password'\n+      click_button 'Sign In'\n+    end\n+\n+    scenario \"after signing in a user creates a course\" do\n+      click_on 'Create Course'\n+      fill_in 'Course Name', with: \"Pacific Dunes\"\n+      fill_in 'Address', with: '1 Bandon Place'\n+      fill_in 'City', with: 'Bandon'\n+      select('Oregon', from: 'State')\n+      fill_in 'Zip', with: '97245'\n+      click_on 'Create Course'\n+\n+      expect(page).to have_content('Pacific Dunes has been added.')\n+      expect(page).to have_content('1 Bandon Place')\n+      expect(page).to have_content('Bandon')\n+      expect(page).to have_content('OR')\n+      expect(page).to have_content('97245')\n+    end\n+\n+    scenario \"a user can't create a course without valid information\" do\n+      click_on 'Create Course'\n+      fill_in 'Course Name', with: \"Pacific Dunes\"\n+      fill_in 'Address', with: ''\n+      fill_in 'City', with: ''\n+      select('Oregon', from: 'State')\n+      fill_in 'Zip', with: ''\n+      click_on 'Create Course'\n+      ","path":"spec/features/user_creates_course_spec.rb","position":38,"original_position":38,"commit_id":"c42bb0f1269b6ce5f43bc329558043570622a0d0","original_commit_id":"c42bb0f1269b6ce5f43bc329558043570622a0d0","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Trailing whitespace detected.","created_at":"2016-04-20T16:53:00Z","updated_at":"2016-04-20T16:53:00Z","html_url":"https://github.com/evanlouden/breakable_toy/pull/7#discussion_r60446137","pull_request_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/comments/60446137"},"html":{"href":"https://github.com/evanlouden/breakable_toy/pull/7#discussion_r60446137"},"pull_request":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7","id":67221703,"html_url":"https://github.com/evanlouden/breakable_toy/pull/7","diff_url":"https://github.com/evanlouden/breakable_toy/pull/7.diff","patch_url":"https://github.com/evanlouden/breakable_toy/pull/7.patch","issue_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/7","number":7,"state":"open","locked":false,"title":"add create course test","user":{"login":"evanlouden","id":17486293,"avatar_url":"https://avatars.githubusercontent.com/u/17486293?v=3","gravatar_id":"","url":"https://api.github.com/users/evanlouden","html_url":"https://github.com/evanlouden","followers_url":"https://api.github.com/users/evanlouden/followers","following_url":"https://api.github.com/users/evanlouden/following{/other_user}","gists_url":"https://api.github.com/users/evanlouden/gists{/gist_id}","starred_url":"https://api.github.com/users/evanlouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanlouden/subscriptions","organizations_url":"https://api.github.com/users/evanlouden/orgs","repos_url":"https://api.github.com/users/evanlouden/repos","events_url":"https://api.github.com/users/evanlouden/events{/privacy}","received_events_url":"https://api.github.com/users/evanlouden/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-20T16:52:54Z","updated_at":"2016-04-20T16:53:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dffd3d8d77dd982fa1ab6e9d5ce98706ec7069f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7/commits","review_comments_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7/comments","review_comment_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/7/comments","statuses_url":"https://api.github.com/repos/evanlouden/breakable_toy/statuses/c42bb0f1269b6ce5f43bc329558043570622a0d0","head":{"label":"evanlouden:createCourseTests","ref":"createCourseTests","sha":"c42bb0f1269b6ce5f43bc329558043570622a0d0","user":{"login":"evanlouden","id":17486293,"avatar_url":"https://avatars.githubusercontent.com/u/17486293?v=3","gravatar_id":"","url":"https://api.github.com/users/evanlouden","html_url":"https://github.com/evanlouden","followers_url":"https://api.github.com/users/evanlouden/followers","following_url":"https://api.github.com/users/evanlouden/following{/other_user}","gists_url":"https://api.github.com/users/evanlouden/gists{/gist_id}","starred_url":"https://api.github.com/users/evanlouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanlouden/subscriptions","organizations_url":"https://api.github.com/users/evanlouden/orgs","repos_url":"https://api.github.com/users/evanlouden/repos","events_url":"https://api.github.com/users/evanlouden/events{/privacy}","received_events_url":"https://api.github.com/users/evanlouden/received_events","type":"User","site_admin":false},"repo":{"id":56417064,"name":"breakable_toy","full_name":"evanlouden/breakable_toy","owner":{"login":"evanlouden","id":17486293,"avatar_url":"https://avatars.githubusercontent.com/u/17486293?v=3","gravatar_id":"","url":"https://api.github.com/users/evanlouden","html_url":"https://github.com/evanlouden","followers_url":"https://api.github.com/users/evanlouden/followers","following_url":"https://api.github.com/users/evanlouden/following{/other_user}","gists_url":"https://api.github.com/users/evanlouden/gists{/gist_id}","starred_url":"https://api.github.com/users/evanlouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanlouden/subscriptions","organizations_url":"https://api.github.com/users/evanlouden/orgs","repos_url":"https://api.github.com/users/evanlouden/repos","events_url":"https://api.github.com/users/evanlouden/events{/privacy}","received_events_url":"https://api.github.com/users/evanlouden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evanlouden/breakable_toy","description":"Final project for Spring 2016 Cohort at Launch Academy","fork":false,"url":"https://api.github.com/repos/evanlouden/breakable_toy","forks_url":"https://api.github.com/repos/evanlouden/breakable_toy/forks","keys_url":"https://api.github.com/repos/evanlouden/breakable_toy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evanlouden/breakable_toy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evanlouden/breakable_toy/teams","hooks_url":"https://api.github.com/repos/evanlouden/breakable_toy/hooks","issue_events_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/events{/number}","events_url":"https://api.github.com/repos/evanlouden/breakable_toy/events","assignees_url":"https://api.github.com/repos/evanlouden/breakable_toy/assignees{/user}","branches_url":"https://api.github.com/repos/evanlouden/breakable_toy/branches{/branch}","tags_url":"https://api.github.com/repos/evanlouden/breakable_toy/tags","blobs_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/refs{/sha}","trees_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evanlouden/breakable_toy/statuses/{sha}","languages_url":"https://api.github.com/repos/evanlouden/breakable_toy/languages","stargazers_url":"https://api.github.com/repos/evanlouden/breakable_toy/stargazers","contributors_url":"https://api.github.com/repos/evanlouden/breakable_toy/contributors","subscribers_url":"https://api.github.com/repos/evanlouden/breakable_toy/subscribers","subscription_url":"https://api.github.com/repos/evanlouden/breakable_toy/subscription","commits_url":"https://api.github.com/repos/evanlouden/breakable_toy/commits{/sha}","git_commits_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/commits{/sha}","comments_url":"https://api.github.com/repos/evanlouden/breakable_toy/comments{/number}","issue_comment_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/comments{/number}","contents_url":"https://api.github.com/repos/evanlouden/breakable_toy/contents/{+path}","compare_url":"https://api.github.com/repos/evanlouden/breakable_toy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evanlouden/breakable_toy/merges","archive_url":"https://api.github.com/repos/evanlouden/breakable_toy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evanlouden/breakable_toy/downloads","issues_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues{/number}","pulls_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls{/number}","milestones_url":"https://api.github.com/repos/evanlouden/breakable_toy/milestones{/number}","notifications_url":"https://api.github.com/repos/evanlouden/breakable_toy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evanlouden/breakable_toy/labels{/name}","releases_url":"https://api.github.com/repos/evanlouden/breakable_toy/releases{/id}","deployments_url":"https://api.github.com/repos/evanlouden/breakable_toy/deployments","created_at":"2016-04-17T03:25:12Z","updated_at":"2016-04-17T03:26:29Z","pushed_at":"2016-04-20T16:52:54Z","git_url":"git://github.com/evanlouden/breakable_toy.git","ssh_url":"git@github.com:evanlouden/breakable_toy.git","clone_url":"https://github.com/evanlouden/breakable_toy.git","svn_url":"https://github.com/evanlouden/breakable_toy","homepage":null,"size":67,"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":"evanlouden:master","ref":"master","sha":"fef8f48159b33f7f6604216c616dc6285f3ab498","user":{"login":"evanlouden","id":17486293,"avatar_url":"https://avatars.githubusercontent.com/u/17486293?v=3","gravatar_id":"","url":"https://api.github.com/users/evanlouden","html_url":"https://github.com/evanlouden","followers_url":"https://api.github.com/users/evanlouden/followers","following_url":"https://api.github.com/users/evanlouden/following{/other_user}","gists_url":"https://api.github.com/users/evanlouden/gists{/gist_id}","starred_url":"https://api.github.com/users/evanlouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanlouden/subscriptions","organizations_url":"https://api.github.com/users/evanlouden/orgs","repos_url":"https://api.github.com/users/evanlouden/repos","events_url":"https://api.github.com/users/evanlouden/events{/privacy}","received_events_url":"https://api.github.com/users/evanlouden/received_events","type":"User","site_admin":false},"repo":{"id":56417064,"name":"breakable_toy","full_name":"evanlouden/breakable_toy","owner":{"login":"evanlouden","id":17486293,"avatar_url":"https://avatars.githubusercontent.com/u/17486293?v=3","gravatar_id":"","url":"https://api.github.com/users/evanlouden","html_url":"https://github.com/evanlouden","followers_url":"https://api.github.com/users/evanlouden/followers","following_url":"https://api.github.com/users/evanlouden/following{/other_user}","gists_url":"https://api.github.com/users/evanlouden/gists{/gist_id}","starred_url":"https://api.github.com/users/evanlouden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanlouden/subscriptions","organizations_url":"https://api.github.com/users/evanlouden/orgs","repos_url":"https://api.github.com/users/evanlouden/repos","events_url":"https://api.github.com/users/evanlouden/events{/privacy}","received_events_url":"https://api.github.com/users/evanlouden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evanlouden/breakable_toy","description":"Final project for Spring 2016 Cohort at Launch Academy","fork":false,"url":"https://api.github.com/repos/evanlouden/breakable_toy","forks_url":"https://api.github.com/repos/evanlouden/breakable_toy/forks","keys_url":"https://api.github.com/repos/evanlouden/breakable_toy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evanlouden/breakable_toy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evanlouden/breakable_toy/teams","hooks_url":"https://api.github.com/repos/evanlouden/breakable_toy/hooks","issue_events_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/events{/number}","events_url":"https://api.github.com/repos/evanlouden/breakable_toy/events","assignees_url":"https://api.github.com/repos/evanlouden/breakable_toy/assignees{/user}","branches_url":"https://api.github.com/repos/evanlouden/breakable_toy/branches{/branch}","tags_url":"https://api.github.com/repos/evanlouden/breakable_toy/tags","blobs_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/refs{/sha}","trees_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evanlouden/breakable_toy/statuses/{sha}","languages_url":"https://api.github.com/repos/evanlouden/breakable_toy/languages","stargazers_url":"https://api.github.com/repos/evanlouden/breakable_toy/stargazers","contributors_url":"https://api.github.com/repos/evanlouden/breakable_toy/contributors","subscribers_url":"https://api.github.com/repos/evanlouden/breakable_toy/subscribers","subscription_url":"https://api.github.com/repos/evanlouden/breakable_toy/subscription","commits_url":"https://api.github.com/repos/evanlouden/breakable_toy/commits{/sha}","git_commits_url":"https://api.github.com/repos/evanlouden/breakable_toy/git/commits{/sha}","comments_url":"https://api.github.com/repos/evanlouden/breakable_toy/comments{/number}","issue_comment_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues/comments{/number}","contents_url":"https://api.github.com/repos/evanlouden/breakable_toy/contents/{+path}","compare_url":"https://api.github.com/repos/evanlouden/breakable_toy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evanlouden/breakable_toy/merges","archive_url":"https://api.github.com/repos/evanlouden/breakable_toy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evanlouden/breakable_toy/downloads","issues_url":"https://api.github.com/repos/evanlouden/breakable_toy/issues{/number}","pulls_url":"https://api.github.com/repos/evanlouden/breakable_toy/pulls{/number}","milestones_url":"https://api.github.com/repos/evanlouden/breakable_toy/milestones{/number}","notifications_url":"https://api.github.com/repos/evanlouden/breakable_toy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evanlouden/breakable_toy/labels{/name}","releases_url":"https://api.github.com/repos/evanlouden/breakable_toy/releases{/id}","deployments_url":"https://api.github.com/repos/evanlouden/breakable_toy/deployments","created_at":"2016-04-17T03:25:12Z","updated_at":"2016-04-17T03:26:29Z","pushed_at":"2016-04-20T16:52:54Z","git_url":"git://github.com/evanlouden/breakable_toy.git","ssh_url":"git@github.com:evanlouden/breakable_toy.git","clone_url":"https://github.com/evanlouden/breakable_toy.git","svn_url":"https://github.com/evanlouden/breakable_toy","homepage":null,"size":67,"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/evanlouden/breakable_toy/pulls/7"},"html":{"href":"https://github.com/evanlouden/breakable_toy/pull/7"},"issue":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/issues/7"},"comments":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/evanlouden/breakable_toy/statuses/c42bb0f1269b6ce5f43bc329558043570622a0d0"}}}}