{"action":"created","comment":{"url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/comments/48581012","id":48581012,"diff_hunk":"@@ -0,0 +1,71 @@\n+require 'rails_helper'\n+\n+RSpec.describe QuotesController, type: :controller do\n+  let(:quote) { create(:quote) }\n+\n+  describe \"#new\" do\n+    subject { get :new }\n+    it \"renders the new template\" do\n+      expect(subject).to render_template(:new)\n+    end\n+\n+    it \"instantiates a new Quote variable\" do\n+      subject\n+      expect(assigns(:quote)).to be_a_new Quote\n+    end\n+  end\n+\n+  describe \"#create\" do\n+    context \"with valid parameters\" do\n+      subject { post :create, quote: attributes_for(:quote) }\n+      it \"changes the quotes count by +1\" do\n+        expect { subject }.to change { Quote.count }.by(1)\n+      end\n+\n+      it \"redirects to the show page\" do\n+        expect(subject).to redirect_to quote_path(Quote.last)\n+      end\n+    end\n+    context \"with invalid parameters\" do\n+      subject { post :create, quote: attributes_for(:quote).merge(body: nil) }\n+      it \"renders the new template filled\" do\n+        expect(subject).to render_template(:new)\n+      end\n+\n+      it \"doesn't change the quotes count\" do\n+        expect { subject }.to_not change { Quote.count }\n+      end\n+    end\n+  end\n+\n+  describe \"#edit\" do","path":"spec/controllers/quotes_controller_spec.rb","position":41,"original_position":41,"commit_id":"807210f251e4016f23acfbad75f19f7b042e48c7","original_commit_id":"807210f251e4016f23acfbad75f19f7b042e48c7","user":{"login":"Dkendal","id":3162299,"avatar_url":"https://avatars.githubusercontent.com/u/3162299?v=3","gravatar_id":"","url":"https://api.github.com/users/Dkendal","html_url":"https://github.com/Dkendal","followers_url":"https://api.github.com/users/Dkendal/followers","following_url":"https://api.github.com/users/Dkendal/following{/other_user}","gists_url":"https://api.github.com/users/Dkendal/gists{/gist_id}","starred_url":"https://api.github.com/users/Dkendal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dkendal/subscriptions","organizations_url":"https://api.github.com/users/Dkendal/orgs","repos_url":"https://api.github.com/users/Dkendal/repos","events_url":"https://api.github.com/users/Dkendal/events{/privacy}","received_events_url":"https://api.github.com/users/Dkendal/received_events","type":"User","site_admin":false},"body":"Empty test.","created_at":"2015-12-30T00:36:42Z","updated_at":"2015-12-30T00:36:42Z","html_url":"https://github.com/StemboltHQ/quoteboard/pull/1#discussion_r48581012","pull_request_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/comments/48581012"},"html":{"href":"https://github.com/StemboltHQ/quoteboard/pull/1#discussion_r48581012"},"pull_request":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1","id":53920248,"html_url":"https://github.com/StemboltHQ/quoteboard/pull/1","diff_url":"https://github.com/StemboltHQ/quoteboard/pull/1.diff","patch_url":"https://github.com/StemboltHQ/quoteboard/pull/1.patch","issue_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/1","number":1,"state":"open","locked":false,"title":"Add quotes","user":{"login":"Murph33","id":12613649,"avatar_url":"https://avatars.githubusercontent.com/u/12613649?v=3","gravatar_id":"","url":"https://api.github.com/users/Murph33","html_url":"https://github.com/Murph33","followers_url":"https://api.github.com/users/Murph33/followers","following_url":"https://api.github.com/users/Murph33/following{/other_user}","gists_url":"https://api.github.com/users/Murph33/gists{/gist_id}","starred_url":"https://api.github.com/users/Murph33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murph33/subscriptions","organizations_url":"https://api.github.com/users/Murph33/orgs","repos_url":"https://api.github.com/users/Murph33/repos","events_url":"https://api.github.com/users/Murph33/events{/privacy}","received_events_url":"https://api.github.com/users/Murph33/received_events","type":"User","site_admin":false},"body":"Very basic page.  Anyone can add a quote.  No CSS.  No users.  All the tests are green though!","created_at":"2015-12-17T00:40:50Z","updated_at":"2015-12-30T00:36:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a1c08bfa859bc60ea04fa0bdbf65f79f71d9f84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1/commits","review_comments_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1/comments","review_comment_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/1/comments","statuses_url":"https://api.github.com/repos/StemboltHQ/quoteboard/statuses/807210f251e4016f23acfbad75f19f7b042e48c7","head":{"label":"StemboltHQ:add_quotes","ref":"add_quotes","sha":"807210f251e4016f23acfbad75f19f7b042e48c7","user":{"login":"StemboltHQ","id":1585390,"avatar_url":"https://avatars.githubusercontent.com/u/1585390?v=3","gravatar_id":"","url":"https://api.github.com/users/StemboltHQ","html_url":"https://github.com/StemboltHQ","followers_url":"https://api.github.com/users/StemboltHQ/followers","following_url":"https://api.github.com/users/StemboltHQ/following{/other_user}","gists_url":"https://api.github.com/users/StemboltHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/StemboltHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StemboltHQ/subscriptions","organizations_url":"https://api.github.com/users/StemboltHQ/orgs","repos_url":"https://api.github.com/users/StemboltHQ/repos","events_url":"https://api.github.com/users/StemboltHQ/events{/privacy}","received_events_url":"https://api.github.com/users/StemboltHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":48142287,"name":"quoteboard","full_name":"StemboltHQ/quoteboard","owner":{"login":"StemboltHQ","id":1585390,"avatar_url":"https://avatars.githubusercontent.com/u/1585390?v=3","gravatar_id":"","url":"https://api.github.com/users/StemboltHQ","html_url":"https://github.com/StemboltHQ","followers_url":"https://api.github.com/users/StemboltHQ/followers","following_url":"https://api.github.com/users/StemboltHQ/following{/other_user}","gists_url":"https://api.github.com/users/StemboltHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/StemboltHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StemboltHQ/subscriptions","organizations_url":"https://api.github.com/users/StemboltHQ/orgs","repos_url":"https://api.github.com/users/StemboltHQ/repos","events_url":"https://api.github.com/users/StemboltHQ/events{/privacy}","received_events_url":"https://api.github.com/users/StemboltHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StemboltHQ/quoteboard","description":"","fork":false,"url":"https://api.github.com/repos/StemboltHQ/quoteboard","forks_url":"https://api.github.com/repos/StemboltHQ/quoteboard/forks","keys_url":"https://api.github.com/repos/StemboltHQ/quoteboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StemboltHQ/quoteboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StemboltHQ/quoteboard/teams","hooks_url":"https://api.github.com/repos/StemboltHQ/quoteboard/hooks","issue_events_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/events{/number}","events_url":"https://api.github.com/repos/StemboltHQ/quoteboard/events","assignees_url":"https://api.github.com/repos/StemboltHQ/quoteboard/assignees{/user}","branches_url":"https://api.github.com/repos/StemboltHQ/quoteboard/branches{/branch}","tags_url":"https://api.github.com/repos/StemboltHQ/quoteboard/tags","blobs_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StemboltHQ/quoteboard/statuses/{sha}","languages_url":"https://api.github.com/repos/StemboltHQ/quoteboard/languages","stargazers_url":"https://api.github.com/repos/StemboltHQ/quoteboard/stargazers","contributors_url":"https://api.github.com/repos/StemboltHQ/quoteboard/contributors","subscribers_url":"https://api.github.com/repos/StemboltHQ/quoteboard/subscribers","subscription_url":"https://api.github.com/repos/StemboltHQ/quoteboard/subscription","commits_url":"https://api.github.com/repos/StemboltHQ/quoteboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/StemboltHQ/quoteboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/StemboltHQ/quoteboard/contents/{+path}","compare_url":"https://api.github.com/repos/StemboltHQ/quoteboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StemboltHQ/quoteboard/merges","archive_url":"https://api.github.com/repos/StemboltHQ/quoteboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StemboltHQ/quoteboard/downloads","issues_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues{/number}","pulls_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls{/number}","milestones_url":"https://api.github.com/repos/StemboltHQ/quoteboard/milestones{/number}","notifications_url":"https://api.github.com/repos/StemboltHQ/quoteboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StemboltHQ/quoteboard/labels{/name}","releases_url":"https://api.github.com/repos/StemboltHQ/quoteboard/releases{/id}","created_at":"2015-12-17T00:10:50Z","updated_at":"2015-12-17T00:14:48Z","pushed_at":"2015-12-30T00:16:31Z","git_url":"git://github.com/StemboltHQ/quoteboard.git","ssh_url":"git@github.com:StemboltHQ/quoteboard.git","clone_url":"https://github.com/StemboltHQ/quoteboard.git","svn_url":"https://github.com/StemboltHQ/quoteboard","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"StemboltHQ:master","ref":"master","sha":"c09f96314717248bcbc5bd2f22866f7e5e2dea73","user":{"login":"StemboltHQ","id":1585390,"avatar_url":"https://avatars.githubusercontent.com/u/1585390?v=3","gravatar_id":"","url":"https://api.github.com/users/StemboltHQ","html_url":"https://github.com/StemboltHQ","followers_url":"https://api.github.com/users/StemboltHQ/followers","following_url":"https://api.github.com/users/StemboltHQ/following{/other_user}","gists_url":"https://api.github.com/users/StemboltHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/StemboltHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StemboltHQ/subscriptions","organizations_url":"https://api.github.com/users/StemboltHQ/orgs","repos_url":"https://api.github.com/users/StemboltHQ/repos","events_url":"https://api.github.com/users/StemboltHQ/events{/privacy}","received_events_url":"https://api.github.com/users/StemboltHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":48142287,"name":"quoteboard","full_name":"StemboltHQ/quoteboard","owner":{"login":"StemboltHQ","id":1585390,"avatar_url":"https://avatars.githubusercontent.com/u/1585390?v=3","gravatar_id":"","url":"https://api.github.com/users/StemboltHQ","html_url":"https://github.com/StemboltHQ","followers_url":"https://api.github.com/users/StemboltHQ/followers","following_url":"https://api.github.com/users/StemboltHQ/following{/other_user}","gists_url":"https://api.github.com/users/StemboltHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/StemboltHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StemboltHQ/subscriptions","organizations_url":"https://api.github.com/users/StemboltHQ/orgs","repos_url":"https://api.github.com/users/StemboltHQ/repos","events_url":"https://api.github.com/users/StemboltHQ/events{/privacy}","received_events_url":"https://api.github.com/users/StemboltHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StemboltHQ/quoteboard","description":"","fork":false,"url":"https://api.github.com/repos/StemboltHQ/quoteboard","forks_url":"https://api.github.com/repos/StemboltHQ/quoteboard/forks","keys_url":"https://api.github.com/repos/StemboltHQ/quoteboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StemboltHQ/quoteboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StemboltHQ/quoteboard/teams","hooks_url":"https://api.github.com/repos/StemboltHQ/quoteboard/hooks","issue_events_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/events{/number}","events_url":"https://api.github.com/repos/StemboltHQ/quoteboard/events","assignees_url":"https://api.github.com/repos/StemboltHQ/quoteboard/assignees{/user}","branches_url":"https://api.github.com/repos/StemboltHQ/quoteboard/branches{/branch}","tags_url":"https://api.github.com/repos/StemboltHQ/quoteboard/tags","blobs_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StemboltHQ/quoteboard/statuses/{sha}","languages_url":"https://api.github.com/repos/StemboltHQ/quoteboard/languages","stargazers_url":"https://api.github.com/repos/StemboltHQ/quoteboard/stargazers","contributors_url":"https://api.github.com/repos/StemboltHQ/quoteboard/contributors","subscribers_url":"https://api.github.com/repos/StemboltHQ/quoteboard/subscribers","subscription_url":"https://api.github.com/repos/StemboltHQ/quoteboard/subscription","commits_url":"https://api.github.com/repos/StemboltHQ/quoteboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/StemboltHQ/quoteboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/StemboltHQ/quoteboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/StemboltHQ/quoteboard/contents/{+path}","compare_url":"https://api.github.com/repos/StemboltHQ/quoteboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StemboltHQ/quoteboard/merges","archive_url":"https://api.github.com/repos/StemboltHQ/quoteboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StemboltHQ/quoteboard/downloads","issues_url":"https://api.github.com/repos/StemboltHQ/quoteboard/issues{/number}","pulls_url":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls{/number}","milestones_url":"https://api.github.com/repos/StemboltHQ/quoteboard/milestones{/number}","notifications_url":"https://api.github.com/repos/StemboltHQ/quoteboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StemboltHQ/quoteboard/labels{/name}","releases_url":"https://api.github.com/repos/StemboltHQ/quoteboard/releases{/id}","created_at":"2015-12-17T00:10:50Z","updated_at":"2015-12-17T00:14:48Z","pushed_at":"2015-12-30T00:16:31Z","git_url":"git://github.com/StemboltHQ/quoteboard.git","ssh_url":"git@github.com:StemboltHQ/quoteboard.git","clone_url":"https://github.com/StemboltHQ/quoteboard.git","svn_url":"https://github.com/StemboltHQ/quoteboard","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1"},"html":{"href":"https://github.com/StemboltHQ/quoteboard/pull/1"},"issue":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/1"},"comments":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/StemboltHQ/quoteboard/statuses/807210f251e4016f23acfbad75f19f7b042e48c7"}}}}