{"action":"created","comment":{"url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/comments/72066243","id":72066243,"diff_hunk":"@@ -71,4 +71,55 @@\n       expect(batch.last_step).to eq(step2)\n     end\n   end\n+\n+  describe '#recipe_steps' do\n+    it \"returns the steps of a batch's recipe\" do\n+      step1 = FactoryGirl.create(:step, recipe: recipe, action: 'Pour honey')\n+\n+      step2 = FactoryGirl.create(:step, recipe: recipe, action: 'Mix it up')\n+\n+      expect(batch.recipe_steps).to eq([step1, step2])\n+    end\n+  end\n+\n+  describe \"#completed_recipe_steps\" do\n+    it \"returns the completed steps that came from a batch's recipe\" do\n+\n+      recipe_step1 = FactoryGirl.create(:step, recipe: recipe, action: 'Pour honey')\n+\n+      recipe_step2 = FactoryGirl.create(:step, recipe: recipe, action: 'Mix it up')\n+\n+      completed_step = FactoryGirl.create(:step, batch: batch, action: 'Pour honey',\n+              completed?: true, recipe: nil)\n+\n+      incomplete_step = FactoryGirl.create(:step, batch: batch, action: 'Mix it up', recipe: nil)\n+\n+      not_recipe_step = FactoryGirl.create(:step, batch: batch, action: 'Pitch the yeast', recipe: nil)\n+\n+      expect(batch.completed_recipe_steps).to eq([completed_step])\n+    end\n+  end\n+\n+  describe \"#new_steps\" do\n+    it \"returns a batch's steps that were not in the original recipe\" do\n+      recipe_step1 = FactoryGirl.create(:step, recipe: recipe, action: 'Pour honey')\n+\n+      recipe_step2 = FactoryGirl.create(:step, recipe: recipe, action: 'Mix it up')\n+\n+      recipe_step3 = FactoryGirl.create(:step, recipe: recipe, action: 'Put in some raisins')\n+\n+\n+      completed_step = FactoryGirl.create(:step, batch: batch, action: 'Pour honey',\n+              completed?: true, recipe: nil)\n+\n+      incomplete_step = FactoryGirl.create(:step, batch: batch, action: 'Mix it up', recipe: nil)\n+\n+      not_recipe_step = FactoryGirl.create(:step, batch: batch, action: 'Pitch the yeast', recipe: nil)\n+\n+      not_recipe_step2 = FactoryGirl.create(:step, batch: batch, action: 'Wait forever', recipe: nil)\n+\n+","path":"spec/models/batch_spec.rb","position":60,"original_position":60,"commit_id":"3bc285aa63dc847d189f716a49244a8f0f7c1d09","original_commit_id":"3bc285aa63dc847d189f716a49244a8f0f7c1d09","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":"Extra blank line detected.","created_at":"2016-07-25T13:50:17Z","updated_at":"2016-07-25T13:50:17Z","html_url":"https://github.com/hgospodarek/meads_expectations/pull/19#discussion_r72066243","pull_request_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/comments/72066243"},"html":{"href":"https://github.com/hgospodarek/meads_expectations/pull/19#discussion_r72066243"},"pull_request":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19","id":78684287,"html_url":"https://github.com/hgospodarek/meads_expectations/pull/19","diff_url":"https://github.com/hgospodarek/meads_expectations/pull/19.diff","patch_url":"https://github.com/hgospodarek/meads_expectations/pull/19.patch","issue_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/19","number":19,"state":"open","locked":false,"title":"Variation comparison","user":{"login":"hgospodarek","id":15362390,"avatar_url":"https://avatars.githubusercontent.com/u/15362390?v=3","gravatar_id":"","url":"https://api.github.com/users/hgospodarek","html_url":"https://github.com/hgospodarek","followers_url":"https://api.github.com/users/hgospodarek/followers","following_url":"https://api.github.com/users/hgospodarek/following{/other_user}","gists_url":"https://api.github.com/users/hgospodarek/gists{/gist_id}","starred_url":"https://api.github.com/users/hgospodarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgospodarek/subscriptions","organizations_url":"https://api.github.com/users/hgospodarek/orgs","repos_url":"https://api.github.com/users/hgospodarek/repos","events_url":"https://api.github.com/users/hgospodarek/events{/privacy}","received_events_url":"https://api.github.com/users/hgospodarek/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-25T13:50:13Z","updated_at":"2016-07-25T13:50:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b02daa09ec926da4ca232d1cd111e1caee8a62ef","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19/commits","review_comments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19/comments","review_comment_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/19/comments","statuses_url":"https://api.github.com/repos/hgospodarek/meads_expectations/statuses/3bc285aa63dc847d189f716a49244a8f0f7c1d09","head":{"label":"hgospodarek:variation_comparison","ref":"variation_comparison","sha":"3bc285aa63dc847d189f716a49244a8f0f7c1d09","user":{"login":"hgospodarek","id":15362390,"avatar_url":"https://avatars.githubusercontent.com/u/15362390?v=3","gravatar_id":"","url":"https://api.github.com/users/hgospodarek","html_url":"https://github.com/hgospodarek","followers_url":"https://api.github.com/users/hgospodarek/followers","following_url":"https://api.github.com/users/hgospodarek/following{/other_user}","gists_url":"https://api.github.com/users/hgospodarek/gists{/gist_id}","starred_url":"https://api.github.com/users/hgospodarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgospodarek/subscriptions","organizations_url":"https://api.github.com/users/hgospodarek/orgs","repos_url":"https://api.github.com/users/hgospodarek/repos","events_url":"https://api.github.com/users/hgospodarek/events{/privacy}","received_events_url":"https://api.github.com/users/hgospodarek/received_events","type":"User","site_admin":false},"repo":{"id":63634118,"name":"meads_expectations","full_name":"hgospodarek/meads_expectations","owner":{"login":"hgospodarek","id":15362390,"avatar_url":"https://avatars.githubusercontent.com/u/15362390?v=3","gravatar_id":"","url":"https://api.github.com/users/hgospodarek","html_url":"https://github.com/hgospodarek","followers_url":"https://api.github.com/users/hgospodarek/followers","following_url":"https://api.github.com/users/hgospodarek/following{/other_user}","gists_url":"https://api.github.com/users/hgospodarek/gists{/gist_id}","starred_url":"https://api.github.com/users/hgospodarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgospodarek/subscriptions","organizations_url":"https://api.github.com/users/hgospodarek/orgs","repos_url":"https://api.github.com/users/hgospodarek/repos","events_url":"https://api.github.com/users/hgospodarek/events{/privacy}","received_events_url":"https://api.github.com/users/hgospodarek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hgospodarek/meads_expectations","description":"Launch Academy breakable toy","fork":false,"url":"https://api.github.com/repos/hgospodarek/meads_expectations","forks_url":"https://api.github.com/repos/hgospodarek/meads_expectations/forks","keys_url":"https://api.github.com/repos/hgospodarek/meads_expectations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hgospodarek/meads_expectations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hgospodarek/meads_expectations/teams","hooks_url":"https://api.github.com/repos/hgospodarek/meads_expectations/hooks","issue_events_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/events{/number}","events_url":"https://api.github.com/repos/hgospodarek/meads_expectations/events","assignees_url":"https://api.github.com/repos/hgospodarek/meads_expectations/assignees{/user}","branches_url":"https://api.github.com/repos/hgospodarek/meads_expectations/branches{/branch}","tags_url":"https://api.github.com/repos/hgospodarek/meads_expectations/tags","blobs_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/refs{/sha}","trees_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hgospodarek/meads_expectations/statuses/{sha}","languages_url":"https://api.github.com/repos/hgospodarek/meads_expectations/languages","stargazers_url":"https://api.github.com/repos/hgospodarek/meads_expectations/stargazers","contributors_url":"https://api.github.com/repos/hgospodarek/meads_expectations/contributors","subscribers_url":"https://api.github.com/repos/hgospodarek/meads_expectations/subscribers","subscription_url":"https://api.github.com/repos/hgospodarek/meads_expectations/subscription","commits_url":"https://api.github.com/repos/hgospodarek/meads_expectations/commits{/sha}","git_commits_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/commits{/sha}","comments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/comments{/number}","issue_comment_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/comments{/number}","contents_url":"https://api.github.com/repos/hgospodarek/meads_expectations/contents/{+path}","compare_url":"https://api.github.com/repos/hgospodarek/meads_expectations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hgospodarek/meads_expectations/merges","archive_url":"https://api.github.com/repos/hgospodarek/meads_expectations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hgospodarek/meads_expectations/downloads","issues_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues{/number}","pulls_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls{/number}","milestones_url":"https://api.github.com/repos/hgospodarek/meads_expectations/milestones{/number}","notifications_url":"https://api.github.com/repos/hgospodarek/meads_expectations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hgospodarek/meads_expectations/labels{/name}","releases_url":"https://api.github.com/repos/hgospodarek/meads_expectations/releases{/id}","deployments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/deployments","created_at":"2016-07-18T20:16:53Z","updated_at":"2016-07-18T20:17:32Z","pushed_at":"2016-07-25T13:50:13Z","git_url":"git://github.com/hgospodarek/meads_expectations.git","ssh_url":"git@github.com:hgospodarek/meads_expectations.git","clone_url":"https://github.com/hgospodarek/meads_expectations.git","svn_url":"https://github.com/hgospodarek/meads_expectations","homepage":null,"size":9041,"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":"hgospodarek:master","ref":"master","sha":"38c8dd0fc1e93d77d988f48cad20a9bb8d8c6380","user":{"login":"hgospodarek","id":15362390,"avatar_url":"https://avatars.githubusercontent.com/u/15362390?v=3","gravatar_id":"","url":"https://api.github.com/users/hgospodarek","html_url":"https://github.com/hgospodarek","followers_url":"https://api.github.com/users/hgospodarek/followers","following_url":"https://api.github.com/users/hgospodarek/following{/other_user}","gists_url":"https://api.github.com/users/hgospodarek/gists{/gist_id}","starred_url":"https://api.github.com/users/hgospodarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgospodarek/subscriptions","organizations_url":"https://api.github.com/users/hgospodarek/orgs","repos_url":"https://api.github.com/users/hgospodarek/repos","events_url":"https://api.github.com/users/hgospodarek/events{/privacy}","received_events_url":"https://api.github.com/users/hgospodarek/received_events","type":"User","site_admin":false},"repo":{"id":63634118,"name":"meads_expectations","full_name":"hgospodarek/meads_expectations","owner":{"login":"hgospodarek","id":15362390,"avatar_url":"https://avatars.githubusercontent.com/u/15362390?v=3","gravatar_id":"","url":"https://api.github.com/users/hgospodarek","html_url":"https://github.com/hgospodarek","followers_url":"https://api.github.com/users/hgospodarek/followers","following_url":"https://api.github.com/users/hgospodarek/following{/other_user}","gists_url":"https://api.github.com/users/hgospodarek/gists{/gist_id}","starred_url":"https://api.github.com/users/hgospodarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgospodarek/subscriptions","organizations_url":"https://api.github.com/users/hgospodarek/orgs","repos_url":"https://api.github.com/users/hgospodarek/repos","events_url":"https://api.github.com/users/hgospodarek/events{/privacy}","received_events_url":"https://api.github.com/users/hgospodarek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hgospodarek/meads_expectations","description":"Launch Academy breakable toy","fork":false,"url":"https://api.github.com/repos/hgospodarek/meads_expectations","forks_url":"https://api.github.com/repos/hgospodarek/meads_expectations/forks","keys_url":"https://api.github.com/repos/hgospodarek/meads_expectations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hgospodarek/meads_expectations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hgospodarek/meads_expectations/teams","hooks_url":"https://api.github.com/repos/hgospodarek/meads_expectations/hooks","issue_events_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/events{/number}","events_url":"https://api.github.com/repos/hgospodarek/meads_expectations/events","assignees_url":"https://api.github.com/repos/hgospodarek/meads_expectations/assignees{/user}","branches_url":"https://api.github.com/repos/hgospodarek/meads_expectations/branches{/branch}","tags_url":"https://api.github.com/repos/hgospodarek/meads_expectations/tags","blobs_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/refs{/sha}","trees_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hgospodarek/meads_expectations/statuses/{sha}","languages_url":"https://api.github.com/repos/hgospodarek/meads_expectations/languages","stargazers_url":"https://api.github.com/repos/hgospodarek/meads_expectations/stargazers","contributors_url":"https://api.github.com/repos/hgospodarek/meads_expectations/contributors","subscribers_url":"https://api.github.com/repos/hgospodarek/meads_expectations/subscribers","subscription_url":"https://api.github.com/repos/hgospodarek/meads_expectations/subscription","commits_url":"https://api.github.com/repos/hgospodarek/meads_expectations/commits{/sha}","git_commits_url":"https://api.github.com/repos/hgospodarek/meads_expectations/git/commits{/sha}","comments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/comments{/number}","issue_comment_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/comments{/number}","contents_url":"https://api.github.com/repos/hgospodarek/meads_expectations/contents/{+path}","compare_url":"https://api.github.com/repos/hgospodarek/meads_expectations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hgospodarek/meads_expectations/merges","archive_url":"https://api.github.com/repos/hgospodarek/meads_expectations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hgospodarek/meads_expectations/downloads","issues_url":"https://api.github.com/repos/hgospodarek/meads_expectations/issues{/number}","pulls_url":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls{/number}","milestones_url":"https://api.github.com/repos/hgospodarek/meads_expectations/milestones{/number}","notifications_url":"https://api.github.com/repos/hgospodarek/meads_expectations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hgospodarek/meads_expectations/labels{/name}","releases_url":"https://api.github.com/repos/hgospodarek/meads_expectations/releases{/id}","deployments_url":"https://api.github.com/repos/hgospodarek/meads_expectations/deployments","created_at":"2016-07-18T20:16:53Z","updated_at":"2016-07-18T20:17:32Z","pushed_at":"2016-07-25T13:50:13Z","git_url":"git://github.com/hgospodarek/meads_expectations.git","ssh_url":"git@github.com:hgospodarek/meads_expectations.git","clone_url":"https://github.com/hgospodarek/meads_expectations.git","svn_url":"https://github.com/hgospodarek/meads_expectations","homepage":null,"size":9041,"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/hgospodarek/meads_expectations/pulls/19"},"html":{"href":"https://github.com/hgospodarek/meads_expectations/pull/19"},"issue":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/19"},"comments":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/hgospodarek/meads_expectations/statuses/3bc285aa63dc847d189f716a49244a8f0f7c1d09"}}}}
{"actor":{"display_login":"houndci-bot"}}