{"action":"created","comment":{"url":"https://api.github.com/repos/wrightmhw/DFD/pulls/comments/23340376","id":23340376,"diff_hunk":"@@ -0,0 +1,159 @@\n+require 'rails_helper'\n+\n+# This spec was generated by rspec-rails when you ran the scaffold generator.\n+# It demonstrates how one might use RSpec to specify the controller code that\n+# was generated by Rails when you ran the scaffold generator.\n+#\n+# It assumes that the implementation code is generated by the rails scaffold\n+# generator.  If you are using any extension libraries to generate different\n+# controller code, this generated spec may or may not pass.\n+#\n+# It only uses APIs available in rails and/or rspec-rails.  There are a number\n+# of tools you can use to make these specs even more expressive, but we're\n+# sticking to rails and rspec-rails APIs to keep things simple and stable.\n+#\n+# Compared to earlier versions of this generator, there is very limited use of\n+# stubs and message expectations in this spec.  Stubs are only used when there\n+# is no simpler way to get a handle on the object needed for the example.\n+# Message expectations are only used when there is no simpler way to specify\n+# that an instance is receiving a specific message.\n+\n+RSpec.describe SongsController, :type => :controller do\n+\n+  # This should return the minimal set of attributes required to create a valid\n+  # Song. As you add validations to Song, be sure to\n+  # adjust the attributes here as well.\n+  let(:valid_attributes) {\n+    skip(\"Add a hash of attributes valid for your model\")\n+  }\n+\n+  let(:invalid_attributes) {\n+    skip(\"Add a hash of attributes invalid for your model\")\n+  }\n+\n+  # This should return the minimal set of values that should be in the session\n+  # in order to pass any filters (e.g. authentication) defined in\n+  # SongsController. Be sure to keep this updated too.\n+  let(:valid_session) { {} }\n+\n+  describe \"GET index\" do\n+    it \"assigns all songs as @songs\" do\n+      song = Song.create! valid_attributes\n+      get :index, {}, valid_session\n+      expect(assigns(:songs)).to eq([song])\n+    end\n+  end\n+\n+  describe \"GET show\" do\n+    it \"assigns the requested song as @song\" do\n+      song = Song.create! valid_attributes\n+      get :show, {:id => song.to_param}, valid_session\n+      expect(assigns(:song)).to eq(song)\n+    end\n+  end\n+\n+  describe \"GET new\" do\n+    it \"assigns a new song as @song\" do\n+      get :new, {}, valid_session\n+      expect(assigns(:song)).to be_a_new(Song)\n+    end\n+  end\n+\n+  describe \"GET edit\" do\n+    it \"assigns the requested song as @song\" do\n+      song = Song.create! valid_attributes\n+      get :edit, {:id => song.to_param}, valid_session\n+      expect(assigns(:song)).to eq(song)\n+    end\n+  end\n+\n+  describe \"POST create\" do\n+    describe \"with valid params\" do\n+      it \"creates a new Song\" do\n+        expect {\n+          post :create, {:song => valid_attributes}, valid_session\n+        }.to change(Song, :count).by(1)\n+      end\n+\n+      it \"assigns a newly created song as @song\" do\n+        post :create, {:song => valid_attributes}, valid_session\n+        expect(assigns(:song)).to be_a(Song)\n+        expect(assigns(:song)).to be_persisted\n+      end\n+\n+      it \"redirects to the created song\" do\n+        post :create, {:song => valid_attributes}, valid_session\n+        expect(response).to redirect_to(Song.last)\n+      end\n+    end\n+\n+    describe \"with invalid params\" do\n+      it \"assigns a newly created but unsaved song as @song\" do\n+        post :create, {:song => invalid_attributes}, valid_session\n+        expect(assigns(:song)).to be_a_new(Song)\n+      end\n+\n+      it \"re-renders the 'new' template\" do\n+        post :create, {:song => invalid_attributes}, valid_session\n+        expect(response).to render_template(\"new\")\n+      end\n+    end\n+  end\n+\n+  describe \"PUT update\" do\n+    describe \"with valid params\" do\n+      let(:new_attributes) {\n+        skip(\"Add a hash of attributes valid for your model\")\n+      }\n+\n+      it \"updates the requested song\" do\n+        song = Song.create! valid_attributes\n+        put :update, {:id => song.to_param, :song => new_attributes}, valid_session\n+        song.reload\n+        skip(\"Add assertions for updated state\")\n+      end\n+\n+      it \"assigns the requested song as @song\" do\n+        song = Song.create! valid_attributes\n+        put :update, {:id => song.to_param, :song => valid_attributes}, valid_session","path":"spec/controllers/songs_controller_spec.rb","position":118,"original_position":118,"commit_id":"c293c1b2cd4979583208262bb6e2b81f2fa33317","original_commit_id":"c293c1b2cd4979583208262bb6e2b81f2fa33317","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":"Line is too long. [85/80]<br>Use the new Ruby 1.9 hash syntax.<br>Space inside { missing.<br>Space inside } missing.","created_at":"2015-01-21T22:28:19Z","updated_at":"2015-01-21T22:28:19Z","html_url":"https://github.com/wrightmhw/DFD/pull/13#discussion_r23340376","pull_request_url":"https://api.github.com/repos/wrightmhw/DFD/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/comments/23340376"},"html":{"href":"https://github.com/wrightmhw/DFD/pull/13#discussion_r23340376"},"pull_request":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/wrightmhw/DFD/pulls/13","id":27796448,"html_url":"https://github.com/wrightmhw/DFD/pull/13","diff_url":"https://github.com/wrightmhw/DFD/pull/13.diff","patch_url":"https://github.com/wrightmhw/DFD/pull/13.patch","issue_url":"https://api.github.com/repos/wrightmhw/DFD/issues/13","number":13,"state":"open","locked":false,"title":"Add media page for embedded youtube videos","user":{"login":"wrightmhw","id":5634398,"avatar_url":"https://avatars.githubusercontent.com/u/5634398?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmhw","html_url":"https://github.com/wrightmhw","followers_url":"https://api.github.com/users/wrightmhw/followers","following_url":"https://api.github.com/users/wrightmhw/following{/other_user}","gists_url":"https://api.github.com/users/wrightmhw/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmhw/subscriptions","organizations_url":"https://api.github.com/users/wrightmhw/orgs","repos_url":"https://api.github.com/users/wrightmhw/repos","events_url":"https://api.github.com/users/wrightmhw/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmhw/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-21T21:28:58Z","updated_at":"2015-01-21T22:28:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a443ffc4aaa868af1b64bd0a9b257596a58372fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wrightmhw/DFD/pulls/13/commits","review_comments_url":"https://api.github.com/repos/wrightmhw/DFD/pulls/13/comments","review_comment_url":"https://api.github.com/repos/wrightmhw/DFD/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wrightmhw/DFD/issues/13/comments","statuses_url":"https://api.github.com/repos/wrightmhw/DFD/statuses/c293c1b2cd4979583208262bb6e2b81f2fa33317","head":{"label":"wrightmhw:watch-listen","ref":"watch-listen","sha":"c293c1b2cd4979583208262bb6e2b81f2fa33317","user":{"login":"wrightmhw","id":5634398,"avatar_url":"https://avatars.githubusercontent.com/u/5634398?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmhw","html_url":"https://github.com/wrightmhw","followers_url":"https://api.github.com/users/wrightmhw/followers","following_url":"https://api.github.com/users/wrightmhw/following{/other_user}","gists_url":"https://api.github.com/users/wrightmhw/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmhw/subscriptions","organizations_url":"https://api.github.com/users/wrightmhw/orgs","repos_url":"https://api.github.com/users/wrightmhw/repos","events_url":"https://api.github.com/users/wrightmhw/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmhw/received_events","type":"User","site_admin":false},"repo":{"id":28289232,"name":"DFD","full_name":"wrightmhw/DFD","owner":{"login":"wrightmhw","id":5634398,"avatar_url":"https://avatars.githubusercontent.com/u/5634398?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmhw","html_url":"https://github.com/wrightmhw","followers_url":"https://api.github.com/users/wrightmhw/followers","following_url":"https://api.github.com/users/wrightmhw/following{/other_user}","gists_url":"https://api.github.com/users/wrightmhw/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmhw/subscriptions","organizations_url":"https://api.github.com/users/wrightmhw/orgs","repos_url":"https://api.github.com/users/wrightmhw/repos","events_url":"https://api.github.com/users/wrightmhw/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmhw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrightmhw/DFD","description":"our new dischord website","fork":false,"url":"https://api.github.com/repos/wrightmhw/DFD","forks_url":"https://api.github.com/repos/wrightmhw/DFD/forks","keys_url":"https://api.github.com/repos/wrightmhw/DFD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrightmhw/DFD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrightmhw/DFD/teams","hooks_url":"https://api.github.com/repos/wrightmhw/DFD/hooks","issue_events_url":"https://api.github.com/repos/wrightmhw/DFD/issues/events{/number}","events_url":"https://api.github.com/repos/wrightmhw/DFD/events","assignees_url":"https://api.github.com/repos/wrightmhw/DFD/assignees{/user}","branches_url":"https://api.github.com/repos/wrightmhw/DFD/branches{/branch}","tags_url":"https://api.github.com/repos/wrightmhw/DFD/tags","blobs_url":"https://api.github.com/repos/wrightmhw/DFD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrightmhw/DFD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrightmhw/DFD/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrightmhw/DFD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrightmhw/DFD/statuses/{sha}","languages_url":"https://api.github.com/repos/wrightmhw/DFD/languages","stargazers_url":"https://api.github.com/repos/wrightmhw/DFD/stargazers","contributors_url":"https://api.github.com/repos/wrightmhw/DFD/contributors","subscribers_url":"https://api.github.com/repos/wrightmhw/DFD/subscribers","subscription_url":"https://api.github.com/repos/wrightmhw/DFD/subscription","commits_url":"https://api.github.com/repos/wrightmhw/DFD/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrightmhw/DFD/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrightmhw/DFD/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrightmhw/DFD/issues/comments/{number}","contents_url":"https://api.github.com/repos/wrightmhw/DFD/contents/{+path}","compare_url":"https://api.github.com/repos/wrightmhw/DFD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrightmhw/DFD/merges","archive_url":"https://api.github.com/repos/wrightmhw/DFD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrightmhw/DFD/downloads","issues_url":"https://api.github.com/repos/wrightmhw/DFD/issues{/number}","pulls_url":"https://api.github.com/repos/wrightmhw/DFD/pulls{/number}","milestones_url":"https://api.github.com/repos/wrightmhw/DFD/milestones{/number}","notifications_url":"https://api.github.com/repos/wrightmhw/DFD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrightmhw/DFD/labels{/name}","releases_url":"https://api.github.com/repos/wrightmhw/DFD/releases{/id}","created_at":"2014-12-21T05:17:13Z","updated_at":"2015-01-21T18:05:21Z","pushed_at":"2015-01-21T22:28:15Z","git_url":"git://github.com/wrightmhw/DFD.git","ssh_url":"git@github.com:wrightmhw/DFD.git","clone_url":"https://github.com/wrightmhw/DFD.git","svn_url":"https://github.com/wrightmhw/DFD","homepage":null,"size":6828,"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":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"wrightmhw:master","ref":"master","sha":"555e1262431f8b897326f0eff318f3194f2e6296","user":{"login":"wrightmhw","id":5634398,"avatar_url":"https://avatars.githubusercontent.com/u/5634398?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmhw","html_url":"https://github.com/wrightmhw","followers_url":"https://api.github.com/users/wrightmhw/followers","following_url":"https://api.github.com/users/wrightmhw/following{/other_user}","gists_url":"https://api.github.com/users/wrightmhw/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmhw/subscriptions","organizations_url":"https://api.github.com/users/wrightmhw/orgs","repos_url":"https://api.github.com/users/wrightmhw/repos","events_url":"https://api.github.com/users/wrightmhw/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmhw/received_events","type":"User","site_admin":false},"repo":{"id":28289232,"name":"DFD","full_name":"wrightmhw/DFD","owner":{"login":"wrightmhw","id":5634398,"avatar_url":"https://avatars.githubusercontent.com/u/5634398?v=3","gravatar_id":"","url":"https://api.github.com/users/wrightmhw","html_url":"https://github.com/wrightmhw","followers_url":"https://api.github.com/users/wrightmhw/followers","following_url":"https://api.github.com/users/wrightmhw/following{/other_user}","gists_url":"https://api.github.com/users/wrightmhw/gists{/gist_id}","starred_url":"https://api.github.com/users/wrightmhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrightmhw/subscriptions","organizations_url":"https://api.github.com/users/wrightmhw/orgs","repos_url":"https://api.github.com/users/wrightmhw/repos","events_url":"https://api.github.com/users/wrightmhw/events{/privacy}","received_events_url":"https://api.github.com/users/wrightmhw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrightmhw/DFD","description":"our new dischord website","fork":false,"url":"https://api.github.com/repos/wrightmhw/DFD","forks_url":"https://api.github.com/repos/wrightmhw/DFD/forks","keys_url":"https://api.github.com/repos/wrightmhw/DFD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrightmhw/DFD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrightmhw/DFD/teams","hooks_url":"https://api.github.com/repos/wrightmhw/DFD/hooks","issue_events_url":"https://api.github.com/repos/wrightmhw/DFD/issues/events{/number}","events_url":"https://api.github.com/repos/wrightmhw/DFD/events","assignees_url":"https://api.github.com/repos/wrightmhw/DFD/assignees{/user}","branches_url":"https://api.github.com/repos/wrightmhw/DFD/branches{/branch}","tags_url":"https://api.github.com/repos/wrightmhw/DFD/tags","blobs_url":"https://api.github.com/repos/wrightmhw/DFD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrightmhw/DFD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrightmhw/DFD/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrightmhw/DFD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrightmhw/DFD/statuses/{sha}","languages_url":"https://api.github.com/repos/wrightmhw/DFD/languages","stargazers_url":"https://api.github.com/repos/wrightmhw/DFD/stargazers","contributors_url":"https://api.github.com/repos/wrightmhw/DFD/contributors","subscribers_url":"https://api.github.com/repos/wrightmhw/DFD/subscribers","subscription_url":"https://api.github.com/repos/wrightmhw/DFD/subscription","commits_url":"https://api.github.com/repos/wrightmhw/DFD/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrightmhw/DFD/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrightmhw/DFD/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrightmhw/DFD/issues/comments/{number}","contents_url":"https://api.github.com/repos/wrightmhw/DFD/contents/{+path}","compare_url":"https://api.github.com/repos/wrightmhw/DFD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrightmhw/DFD/merges","archive_url":"https://api.github.com/repos/wrightmhw/DFD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrightmhw/DFD/downloads","issues_url":"https://api.github.com/repos/wrightmhw/DFD/issues{/number}","pulls_url":"https://api.github.com/repos/wrightmhw/DFD/pulls{/number}","milestones_url":"https://api.github.com/repos/wrightmhw/DFD/milestones{/number}","notifications_url":"https://api.github.com/repos/wrightmhw/DFD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrightmhw/DFD/labels{/name}","releases_url":"https://api.github.com/repos/wrightmhw/DFD/releases{/id}","created_at":"2014-12-21T05:17:13Z","updated_at":"2015-01-21T18:05:21Z","pushed_at":"2015-01-21T22:28:15Z","git_url":"git://github.com/wrightmhw/DFD.git","ssh_url":"git@github.com:wrightmhw/DFD.git","clone_url":"https://github.com/wrightmhw/DFD.git","svn_url":"https://github.com/wrightmhw/DFD","homepage":null,"size":6828,"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":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/13"},"html":{"href":"https://github.com/wrightmhw/DFD/pull/13"},"issue":{"href":"https://api.github.com/repos/wrightmhw/DFD/issues/13"},"comments":{"href":"https://api.github.com/repos/wrightmhw/DFD/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wrightmhw/DFD/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/wrightmhw/DFD/statuses/c293c1b2cd4979583208262bb6e2b81f2fa33317"}}}}