{"action":"created","comment":{"url":"https://api.github.com/repos/datasektionen/harpoon/pulls/comments/32564225","id":32564225,"diff_hunk":"@@ -0,0 +1,171 @@\n+require \"rails_helper\"\n+\n+RSpec.describe NominationsController, type: :controller do\n+  let(:valid_attributes) { FactoryGirl.attributes_for :nomination }\n+  let(:invalid_attributes) { { email: \"\" } }\n+\n+  describe \"GET index\" do\n+    it \"assigns all nominations as @nominations\" do\n+      nomination = FactoryGirl.create(:nomination)\n+      get :index, election_id: nomination.election_id\n+      expect(assigns(:nominations)).to eq([nomination])\n+    end\n+  end\n+\n+  describe \"GET show\" do\n+    it \"assigns the requested nomination as @nomination\" do\n+      nomination = FactoryGirl.create(:nomination)\n+      get :show, id: nomination.to_param, election_id: nomination.election_id\n+      expect(assigns(:nomination)).to eq(nomination)\n+    end\n+  end\n+\n+  describe \"GET new\" do\n+    it \"assigns a new nomination as @nomination\" do\n+      election = FactoryGirl.create(:election)\n+      get :new, election_id: election.id\n+      expect(assigns(:nomination)).to be_a_new(Nomination)\n+    end\n+  end\n+\n+  describe \"GET edit\" do\n+    it \"assigns the requested nomination as @nomination\" do\n+      nomination = FactoryGirl.create(:nomination)\n+      get :edit, id: nomination.to_param, election_id: nomination.election_id\n+      expect(assigns(:nomination)).to eq(nomination)\n+    end\n+  end\n+\n+  describe \"POST create\" do\n+    let(:election) { FactoryGirl.create(:election) }\n+\n+    describe \"with valid params\" do\n+      it \"creates a new Nomination\" do\n+        expect {","path":"spec/controllers/nominations_controller_spec.rb","position":44,"original_position":44,"commit_id":"eb6e4def38c1270a513980b25cddf13b6dfa89b4","original_commit_id":"eb6e4def38c1270a513980b25cddf13b6dfa89b4","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":"Avoid using {...} for multi-line blocks.","created_at":"2015-06-16T20:03:06Z","updated_at":"2015-06-16T20:03:06Z","html_url":"https://github.com/datasektionen/harpoon/pull/3#discussion_r32564225","pull_request_url":"https://api.github.com/repos/datasektionen/harpoon/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/comments/32564225"},"html":{"href":"https://github.com/datasektionen/harpoon/pull/3#discussion_r32564225"},"pull_request":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/datasektionen/harpoon/pulls/3","id":26584964,"html_url":"https://github.com/datasektionen/harpoon/pull/3","diff_url":"https://github.com/datasektionen/harpoon/pull/3.diff","patch_url":"https://github.com/datasektionen/harpoon/pull/3.patch","issue_url":"https://api.github.com/repos/datasektionen/harpoon/issues/3","number":3,"state":"open","locked":false,"title":"Nomination","user":{"login":"sajmoon","id":234977,"avatar_url":"https://avatars.githubusercontent.com/u/234977?v=3","gravatar_id":"","url":"https://api.github.com/users/sajmoon","html_url":"https://github.com/sajmoon","followers_url":"https://api.github.com/users/sajmoon/followers","following_url":"https://api.github.com/users/sajmoon/following{/other_user}","gists_url":"https://api.github.com/users/sajmoon/gists{/gist_id}","starred_url":"https://api.github.com/users/sajmoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sajmoon/subscriptions","organizations_url":"https://api.github.com/users/sajmoon/orgs","repos_url":"https://api.github.com/users/sajmoon/repos","events_url":"https://api.github.com/users/sajmoon/events{/privacy}","received_events_url":"https://api.github.com/users/sajmoon/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-25T17:23:47Z","updated_at":"2015-06-16T20:03:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d07fbc67f07ec6e9ba349c60d07b01ac8e9d261","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/datasektionen/harpoon/pulls/3/commits","review_comments_url":"https://api.github.com/repos/datasektionen/harpoon/pulls/3/comments","review_comment_url":"https://api.github.com/repos/datasektionen/harpoon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datasektionen/harpoon/issues/3/comments","statuses_url":"https://api.github.com/repos/datasektionen/harpoon/statuses/eb6e4def38c1270a513980b25cddf13b6dfa89b4","head":{"label":"datasektionen:nomination","ref":"nomination","sha":"eb6e4def38c1270a513980b25cddf13b6dfa89b4","user":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"repo":{"id":27553758,"name":"harpoon","full_name":"datasektionen/harpoon","owner":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datasektionen/harpoon","description":"Ersättning för valbitarna i purjo","fork":false,"url":"https://api.github.com/repos/datasektionen/harpoon","forks_url":"https://api.github.com/repos/datasektionen/harpoon/forks","keys_url":"https://api.github.com/repos/datasektionen/harpoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datasektionen/harpoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datasektionen/harpoon/teams","hooks_url":"https://api.github.com/repos/datasektionen/harpoon/hooks","issue_events_url":"https://api.github.com/repos/datasektionen/harpoon/issues/events{/number}","events_url":"https://api.github.com/repos/datasektionen/harpoon/events","assignees_url":"https://api.github.com/repos/datasektionen/harpoon/assignees{/user}","branches_url":"https://api.github.com/repos/datasektionen/harpoon/branches{/branch}","tags_url":"https://api.github.com/repos/datasektionen/harpoon/tags","blobs_url":"https://api.github.com/repos/datasektionen/harpoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datasektionen/harpoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datasektionen/harpoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/datasektionen/harpoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datasektionen/harpoon/statuses/{sha}","languages_url":"https://api.github.com/repos/datasektionen/harpoon/languages","stargazers_url":"https://api.github.com/repos/datasektionen/harpoon/stargazers","contributors_url":"https://api.github.com/repos/datasektionen/harpoon/contributors","subscribers_url":"https://api.github.com/repos/datasektionen/harpoon/subscribers","subscription_url":"https://api.github.com/repos/datasektionen/harpoon/subscription","commits_url":"https://api.github.com/repos/datasektionen/harpoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/datasektionen/harpoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/datasektionen/harpoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/datasektionen/harpoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/datasektionen/harpoon/contents/{+path}","compare_url":"https://api.github.com/repos/datasektionen/harpoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datasektionen/harpoon/merges","archive_url":"https://api.github.com/repos/datasektionen/harpoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datasektionen/harpoon/downloads","issues_url":"https://api.github.com/repos/datasektionen/harpoon/issues{/number}","pulls_url":"https://api.github.com/repos/datasektionen/harpoon/pulls{/number}","milestones_url":"https://api.github.com/repos/datasektionen/harpoon/milestones{/number}","notifications_url":"https://api.github.com/repos/datasektionen/harpoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datasektionen/harpoon/labels{/name}","releases_url":"https://api.github.com/repos/datasektionen/harpoon/releases{/id}","created_at":"2014-12-04T18:23:51Z","updated_at":"2015-01-02T09:58:02Z","pushed_at":"2015-06-16T20:02:56Z","git_url":"git://github.com/datasektionen/harpoon.git","ssh_url":"git@github.com:datasektionen/harpoon.git","clone_url":"https://github.com/datasektionen/harpoon.git","svn_url":"https://github.com/datasektionen/harpoon","homepage":"","size":413,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"datasektionen:master","ref":"master","sha":"9d04ed4287bfb5b4c0e850bd2400041bb8b217bb","user":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"repo":{"id":27553758,"name":"harpoon","full_name":"datasektionen/harpoon","owner":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datasektionen/harpoon","description":"Ersättning för valbitarna i purjo","fork":false,"url":"https://api.github.com/repos/datasektionen/harpoon","forks_url":"https://api.github.com/repos/datasektionen/harpoon/forks","keys_url":"https://api.github.com/repos/datasektionen/harpoon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datasektionen/harpoon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datasektionen/harpoon/teams","hooks_url":"https://api.github.com/repos/datasektionen/harpoon/hooks","issue_events_url":"https://api.github.com/repos/datasektionen/harpoon/issues/events{/number}","events_url":"https://api.github.com/repos/datasektionen/harpoon/events","assignees_url":"https://api.github.com/repos/datasektionen/harpoon/assignees{/user}","branches_url":"https://api.github.com/repos/datasektionen/harpoon/branches{/branch}","tags_url":"https://api.github.com/repos/datasektionen/harpoon/tags","blobs_url":"https://api.github.com/repos/datasektionen/harpoon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datasektionen/harpoon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datasektionen/harpoon/git/refs{/sha}","trees_url":"https://api.github.com/repos/datasektionen/harpoon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datasektionen/harpoon/statuses/{sha}","languages_url":"https://api.github.com/repos/datasektionen/harpoon/languages","stargazers_url":"https://api.github.com/repos/datasektionen/harpoon/stargazers","contributors_url":"https://api.github.com/repos/datasektionen/harpoon/contributors","subscribers_url":"https://api.github.com/repos/datasektionen/harpoon/subscribers","subscription_url":"https://api.github.com/repos/datasektionen/harpoon/subscription","commits_url":"https://api.github.com/repos/datasektionen/harpoon/commits{/sha}","git_commits_url":"https://api.github.com/repos/datasektionen/harpoon/git/commits{/sha}","comments_url":"https://api.github.com/repos/datasektionen/harpoon/comments{/number}","issue_comment_url":"https://api.github.com/repos/datasektionen/harpoon/issues/comments{/number}","contents_url":"https://api.github.com/repos/datasektionen/harpoon/contents/{+path}","compare_url":"https://api.github.com/repos/datasektionen/harpoon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datasektionen/harpoon/merges","archive_url":"https://api.github.com/repos/datasektionen/harpoon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datasektionen/harpoon/downloads","issues_url":"https://api.github.com/repos/datasektionen/harpoon/issues{/number}","pulls_url":"https://api.github.com/repos/datasektionen/harpoon/pulls{/number}","milestones_url":"https://api.github.com/repos/datasektionen/harpoon/milestones{/number}","notifications_url":"https://api.github.com/repos/datasektionen/harpoon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datasektionen/harpoon/labels{/name}","releases_url":"https://api.github.com/repos/datasektionen/harpoon/releases{/id}","created_at":"2014-12-04T18:23:51Z","updated_at":"2015-01-02T09:58:02Z","pushed_at":"2015-06-16T20:02:56Z","git_url":"git://github.com/datasektionen/harpoon.git","ssh_url":"git@github.com:datasektionen/harpoon.git","clone_url":"https://github.com/datasektionen/harpoon.git","svn_url":"https://github.com/datasektionen/harpoon","homepage":"","size":413,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/3"},"html":{"href":"https://github.com/datasektionen/harpoon/pull/3"},"issue":{"href":"https://api.github.com/repos/datasektionen/harpoon/issues/3"},"comments":{"href":"https://api.github.com/repos/datasektionen/harpoon/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datasektionen/harpoon/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/datasektionen/harpoon/statuses/eb6e4def38c1270a513980b25cddf13b6dfa89b4"}}}}