{"action":"created","comment":{"url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/comments/29135404","id":29135404,"diff_hunk":"@@ -0,0 +1,49 @@\n+require 'rails_helper'\n+\n+describe StepsController do\n+  describe \"#new\" do\n+    it \"receives new step\" do\n+      get :new\n+      expect(assigns[:step]).to be_a_new(Step)\n+    end\n+  end\n+\n+  describe \"#create\" do\n+    let(:recipe) { create(:recipe) }\n+\n+    it \"saves the new step in the recipe\" do\n+      post :create, step: { recipe_id: recipe, description: \"Some text I would like to put in my step\" }\n+    end\n+  end\n+\n+  describe \"#edit\" do\n+    let!(:step) { create(:step) }\n+\n+    it \"should find the step and return the object\" do\n+      get :edit, { id: step.id, step: { description: \"Some text I would like to edit in my step\" } }\n+      expect(response).to render_template(:edit)\n+    end\n+  end\n+\n+  describe \"#update\" do\n+    let!(:step) { create(:step) }\n+\n+    it \"should find the step and save the new object\" do\n+      put :update, { id: step.id, step: { description: \"Some text I would like to update in my step\" } }\n+\n+      expect(flash[:notice]).to eq(\"The step was updated successfully\")\n+    end","path":"spec/controllers/steps_controller_spec.rb","position":35,"original_position":35,"commit_id":"3325d94054c5145885e8d07f8a05a9457e6a6e54","original_commit_id":"3325d94054c5145885e8d07f8a05a9457e6a6e54","user":{"login":"andreorvalho","id":165746,"avatar_url":"https://avatars.githubusercontent.com/u/165746?v=3","gravatar_id":"","url":"https://api.github.com/users/andreorvalho","html_url":"https://github.com/andreorvalho","followers_url":"https://api.github.com/users/andreorvalho/followers","following_url":"https://api.github.com/users/andreorvalho/following{/other_user}","gists_url":"https://api.github.com/users/andreorvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/andreorvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreorvalho/subscriptions","organizations_url":"https://api.github.com/users/andreorvalho/orgs","repos_url":"https://api.github.com/users/andreorvalho/repos","events_url":"https://api.github.com/users/andreorvalho/events{/privacy}","received_events_url":"https://api.github.com/users/andreorvalho/received_events","type":"User","site_admin":false},"body":"when you update, what happens? normally it change something... in this case you are passing a new description, you should test that the test step description is now what you have passed!\r\n\r\nfor example:\r\n```ruby\r\nnew_description = \"Some text I would like to update in my step\"\r\nput :update, { id: step.id, step: { description: new_description } }\r\nexpect(step.description).to eq(new_description)\r\n```","created_at":"2015-04-27T10:20:41Z","updated_at":"2015-04-27T10:20:41Z","html_url":"https://github.com/andreorvalho/foodies_cube/pull/11#discussion_r29135404","pull_request_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/comments/29135404"},"html":{"href":"https://github.com/andreorvalho/foodies_cube/pull/11#discussion_r29135404"},"pull_request":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11","id":32650333,"html_url":"https://github.com/andreorvalho/foodies_cube/pull/11","diff_url":"https://github.com/andreorvalho/foodies_cube/pull/11.diff","patch_url":"https://github.com/andreorvalho/foodies_cube/pull/11.patch","issue_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/11","number":11,"state":"open","locked":false,"title":"start of recipe creation","user":{"login":"jonybravo","id":8008067,"avatar_url":"https://avatars.githubusercontent.com/u/8008067?v=3","gravatar_id":"","url":"https://api.github.com/users/jonybravo","html_url":"https://github.com/jonybravo","followers_url":"https://api.github.com/users/jonybravo/followers","following_url":"https://api.github.com/users/jonybravo/following{/other_user}","gists_url":"https://api.github.com/users/jonybravo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonybravo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonybravo/subscriptions","organizations_url":"https://api.github.com/users/jonybravo/orgs","repos_url":"https://api.github.com/users/jonybravo/repos","events_url":"https://api.github.com/users/jonybravo/events{/privacy}","received_events_url":"https://api.github.com/users/jonybravo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-05T15:47:58Z","updated_at":"2015-04-27T10:20:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec86a6cc2b96ec195cc1dbf8da96c46bf298a738","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11/commits","review_comments_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11/comments","review_comment_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/11/comments","statuses_url":"https://api.github.com/repos/andreorvalho/foodies_cube/statuses/3325d94054c5145885e8d07f8a05a9457e6a6e54","head":{"label":"andreorvalho:create_recipes","ref":"create_recipes","sha":"3325d94054c5145885e8d07f8a05a9457e6a6e54","user":{"login":"andreorvalho","id":165746,"avatar_url":"https://avatars.githubusercontent.com/u/165746?v=3","gravatar_id":"","url":"https://api.github.com/users/andreorvalho","html_url":"https://github.com/andreorvalho","followers_url":"https://api.github.com/users/andreorvalho/followers","following_url":"https://api.github.com/users/andreorvalho/following{/other_user}","gists_url":"https://api.github.com/users/andreorvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/andreorvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreorvalho/subscriptions","organizations_url":"https://api.github.com/users/andreorvalho/orgs","repos_url":"https://api.github.com/users/andreorvalho/repos","events_url":"https://api.github.com/users/andreorvalho/events{/privacy}","received_events_url":"https://api.github.com/users/andreorvalho/received_events","type":"User","site_admin":false},"repo":{"id":21777434,"name":"foodies_cube","full_name":"andreorvalho/foodies_cube","owner":{"login":"andreorvalho","id":165746,"avatar_url":"https://avatars.githubusercontent.com/u/165746?v=3","gravatar_id":"","url":"https://api.github.com/users/andreorvalho","html_url":"https://github.com/andreorvalho","followers_url":"https://api.github.com/users/andreorvalho/followers","following_url":"https://api.github.com/users/andreorvalho/following{/other_user}","gists_url":"https://api.github.com/users/andreorvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/andreorvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreorvalho/subscriptions","organizations_url":"https://api.github.com/users/andreorvalho/orgs","repos_url":"https://api.github.com/users/andreorvalho/repos","events_url":"https://api.github.com/users/andreorvalho/events{/privacy}","received_events_url":"https://api.github.com/users/andreorvalho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreorvalho/foodies_cube","description":"app for foodies","fork":false,"url":"https://api.github.com/repos/andreorvalho/foodies_cube","forks_url":"https://api.github.com/repos/andreorvalho/foodies_cube/forks","keys_url":"https://api.github.com/repos/andreorvalho/foodies_cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreorvalho/foodies_cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreorvalho/foodies_cube/teams","hooks_url":"https://api.github.com/repos/andreorvalho/foodies_cube/hooks","issue_events_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/events{/number}","events_url":"https://api.github.com/repos/andreorvalho/foodies_cube/events","assignees_url":"https://api.github.com/repos/andreorvalho/foodies_cube/assignees{/user}","branches_url":"https://api.github.com/repos/andreorvalho/foodies_cube/branches{/branch}","tags_url":"https://api.github.com/repos/andreorvalho/foodies_cube/tags","blobs_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreorvalho/foodies_cube/statuses/{sha}","languages_url":"https://api.github.com/repos/andreorvalho/foodies_cube/languages","stargazers_url":"https://api.github.com/repos/andreorvalho/foodies_cube/stargazers","contributors_url":"https://api.github.com/repos/andreorvalho/foodies_cube/contributors","subscribers_url":"https://api.github.com/repos/andreorvalho/foodies_cube/subscribers","subscription_url":"https://api.github.com/repos/andreorvalho/foodies_cube/subscription","commits_url":"https://api.github.com/repos/andreorvalho/foodies_cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreorvalho/foodies_cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreorvalho/foodies_cube/contents/{+path}","compare_url":"https://api.github.com/repos/andreorvalho/foodies_cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreorvalho/foodies_cube/merges","archive_url":"https://api.github.com/repos/andreorvalho/foodies_cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreorvalho/foodies_cube/downloads","issues_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues{/number}","pulls_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls{/number}","milestones_url":"https://api.github.com/repos/andreorvalho/foodies_cube/milestones{/number}","notifications_url":"https://api.github.com/repos/andreorvalho/foodies_cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreorvalho/foodies_cube/labels{/name}","releases_url":"https://api.github.com/repos/andreorvalho/foodies_cube/releases{/id}","created_at":"2014-07-12T21:59:50Z","updated_at":"2015-04-02T12:01:18Z","pushed_at":"2015-04-24T10:28:35Z","git_url":"git://github.com/andreorvalho/foodies_cube.git","ssh_url":"git@github.com:andreorvalho/foodies_cube.git","clone_url":"https://github.com/andreorvalho/foodies_cube.git","svn_url":"https://github.com/andreorvalho/foodies_cube","homepage":null,"size":928,"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":"develop"}},"base":{"label":"andreorvalho:develop","ref":"develop","sha":"29a61f02eacd59142aa480c10de5bfea7ad04ba2","user":{"login":"andreorvalho","id":165746,"avatar_url":"https://avatars.githubusercontent.com/u/165746?v=3","gravatar_id":"","url":"https://api.github.com/users/andreorvalho","html_url":"https://github.com/andreorvalho","followers_url":"https://api.github.com/users/andreorvalho/followers","following_url":"https://api.github.com/users/andreorvalho/following{/other_user}","gists_url":"https://api.github.com/users/andreorvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/andreorvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreorvalho/subscriptions","organizations_url":"https://api.github.com/users/andreorvalho/orgs","repos_url":"https://api.github.com/users/andreorvalho/repos","events_url":"https://api.github.com/users/andreorvalho/events{/privacy}","received_events_url":"https://api.github.com/users/andreorvalho/received_events","type":"User","site_admin":false},"repo":{"id":21777434,"name":"foodies_cube","full_name":"andreorvalho/foodies_cube","owner":{"login":"andreorvalho","id":165746,"avatar_url":"https://avatars.githubusercontent.com/u/165746?v=3","gravatar_id":"","url":"https://api.github.com/users/andreorvalho","html_url":"https://github.com/andreorvalho","followers_url":"https://api.github.com/users/andreorvalho/followers","following_url":"https://api.github.com/users/andreorvalho/following{/other_user}","gists_url":"https://api.github.com/users/andreorvalho/gists{/gist_id}","starred_url":"https://api.github.com/users/andreorvalho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreorvalho/subscriptions","organizations_url":"https://api.github.com/users/andreorvalho/orgs","repos_url":"https://api.github.com/users/andreorvalho/repos","events_url":"https://api.github.com/users/andreorvalho/events{/privacy}","received_events_url":"https://api.github.com/users/andreorvalho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreorvalho/foodies_cube","description":"app for foodies","fork":false,"url":"https://api.github.com/repos/andreorvalho/foodies_cube","forks_url":"https://api.github.com/repos/andreorvalho/foodies_cube/forks","keys_url":"https://api.github.com/repos/andreorvalho/foodies_cube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreorvalho/foodies_cube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreorvalho/foodies_cube/teams","hooks_url":"https://api.github.com/repos/andreorvalho/foodies_cube/hooks","issue_events_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/events{/number}","events_url":"https://api.github.com/repos/andreorvalho/foodies_cube/events","assignees_url":"https://api.github.com/repos/andreorvalho/foodies_cube/assignees{/user}","branches_url":"https://api.github.com/repos/andreorvalho/foodies_cube/branches{/branch}","tags_url":"https://api.github.com/repos/andreorvalho/foodies_cube/tags","blobs_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreorvalho/foodies_cube/statuses/{sha}","languages_url":"https://api.github.com/repos/andreorvalho/foodies_cube/languages","stargazers_url":"https://api.github.com/repos/andreorvalho/foodies_cube/stargazers","contributors_url":"https://api.github.com/repos/andreorvalho/foodies_cube/contributors","subscribers_url":"https://api.github.com/repos/andreorvalho/foodies_cube/subscribers","subscription_url":"https://api.github.com/repos/andreorvalho/foodies_cube/subscription","commits_url":"https://api.github.com/repos/andreorvalho/foodies_cube/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreorvalho/foodies_cube/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreorvalho/foodies_cube/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreorvalho/foodies_cube/contents/{+path}","compare_url":"https://api.github.com/repos/andreorvalho/foodies_cube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreorvalho/foodies_cube/merges","archive_url":"https://api.github.com/repos/andreorvalho/foodies_cube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreorvalho/foodies_cube/downloads","issues_url":"https://api.github.com/repos/andreorvalho/foodies_cube/issues{/number}","pulls_url":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls{/number}","milestones_url":"https://api.github.com/repos/andreorvalho/foodies_cube/milestones{/number}","notifications_url":"https://api.github.com/repos/andreorvalho/foodies_cube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreorvalho/foodies_cube/labels{/name}","releases_url":"https://api.github.com/repos/andreorvalho/foodies_cube/releases{/id}","created_at":"2014-07-12T21:59:50Z","updated_at":"2015-04-02T12:01:18Z","pushed_at":"2015-04-24T10:28:35Z","git_url":"git://github.com/andreorvalho/foodies_cube.git","ssh_url":"git@github.com:andreorvalho/foodies_cube.git","clone_url":"https://github.com/andreorvalho/foodies_cube.git","svn_url":"https://github.com/andreorvalho/foodies_cube","homepage":null,"size":928,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11"},"html":{"href":"https://github.com/andreorvalho/foodies_cube/pull/11"},"issue":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/11"},"comments":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/andreorvalho/foodies_cube/statuses/3325d94054c5145885e8d07f8a05a9457e6a6e54"}}}}