{"action":"created","comment":{"url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/comments/23745509","id":23745509,"diff_hunk":"@@ -1,14 +1,30 @@\n require 'spec_helper'\n \n-# Write unit tests with ChefSpec - https://github.com/sethvargo/chefspec#readme\n describe 'pantry::default' do\n-  let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }\n+  context 'Mac OS X' do\n+    let(:chef_run) do\n+      ChefSpec::SoloRunner.new(platform: 'mac_os_x', version: '10.10').\n+        converge(described_recipe)\n+    end\n \n-  it 'logs a sample message' do\n-    expect(chef_run).to write_log 'replace this with a meaningful resource'\n+    before do\n+      # Homebrew Command Stubs\n+      stub_command('which git').and_return('/usr/local/bin/git')\n+    end\n+\n+    it 'includes pantry::mac_os_x recipe' do\n+      expect(chef_run).to include_recipe('pantry::mac_os_x')\n+    end\n   end\n \n-  it 'does something' do\n-    pending 'Replace this with meaningful tests'\n+  context 'Windows' do\n+    let(:chef_run) do\n+      ChefSpec::SoloRunner.new(platform: 'windows', version: '2012').\n+        converge(described_recipe)\n+    end\n+\n+    it 'includes pantry::windows recipe' do\n+      expect(chef_run).to include_recipe('pantry::windows')","path":"spec/recipes/default_spec.rb","position":33,"original_position":33,"commit_id":"d50c82676bfffd2c74bd280e9cd484c1a6efd26b","original_commit_id":"d50c82676bfffd2c74bd280e9cd484c1a6efd26b","user":{"login":"jtimberman","id":12483,"avatar_url":"https://avatars.githubusercontent.com/u/12483?v=3","gravatar_id":"","url":"https://api.github.com/users/jtimberman","html_url":"https://github.com/jtimberman","followers_url":"https://api.github.com/users/jtimberman/followers","following_url":"https://api.github.com/users/jtimberman/following{/other_user}","gists_url":"https://api.github.com/users/jtimberman/gists{/gist_id}","starred_url":"https://api.github.com/users/jtimberman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtimberman/subscriptions","organizations_url":"https://api.github.com/users/jtimberman/orgs","repos_url":"https://api.github.com/users/jtimberman/repos","events_url":"https://api.github.com/users/jtimberman/events{/privacy}","received_events_url":"https://api.github.com/users/jtimberman/received_events","type":"User","site_admin":false},"body":"as is this one","created_at":"2015-01-29T04:01:17Z","updated_at":"2015-01-29T04:01:17Z","html_url":"https://github.com/opscode-cookbooks/pantry/pull/9#discussion_r23745509","pull_request_url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/comments/23745509"},"html":{"href":"https://github.com/opscode-cookbooks/pantry/pull/9#discussion_r23745509"},"pull_request":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9","id":27969993,"html_url":"https://github.com/opscode-cookbooks/pantry/pull/9","diff_url":"https://github.com/opscode-cookbooks/pantry/pull/9.diff","patch_url":"https://github.com/opscode-cookbooks/pantry/pull/9.patch","issue_url":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/9","number":9,"state":"open","locked":false,"title":"Add ChefSpec Tests and Fix Foodcritic Issue","user":{"login":"pwelch","id":568257,"avatar_url":"https://avatars.githubusercontent.com/u/568257?v=3","gravatar_id":"","url":"https://api.github.com/users/pwelch","html_url":"https://github.com/pwelch","followers_url":"https://api.github.com/users/pwelch/followers","following_url":"https://api.github.com/users/pwelch/following{/other_user}","gists_url":"https://api.github.com/users/pwelch/gists{/gist_id}","starred_url":"https://api.github.com/users/pwelch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwelch/subscriptions","organizations_url":"https://api.github.com/users/pwelch/orgs","repos_url":"https://api.github.com/users/pwelch/repos","events_url":"https://api.github.com/users/pwelch/events{/privacy}","received_events_url":"https://api.github.com/users/pwelch/received_events","type":"User","site_admin":false},"body":"- Add and Update ChefSpec Tests for current cookbook logic\r\n- Fix Foodcritic FC007 Error by adding build-essential dependency to metadata","created_at":"2015-01-24T02:23:03Z","updated_at":"2015-01-29T04:01:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed072cff490a46078f48b6e4c5df3cd1a9fb7ab7","assignee":{"login":"jtimberman","id":12483,"avatar_url":"https://avatars.githubusercontent.com/u/12483?v=3","gravatar_id":"","url":"https://api.github.com/users/jtimberman","html_url":"https://github.com/jtimberman","followers_url":"https://api.github.com/users/jtimberman/followers","following_url":"https://api.github.com/users/jtimberman/following{/other_user}","gists_url":"https://api.github.com/users/jtimberman/gists{/gist_id}","starred_url":"https://api.github.com/users/jtimberman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtimberman/subscriptions","organizations_url":"https://api.github.com/users/jtimberman/orgs","repos_url":"https://api.github.com/users/jtimberman/repos","events_url":"https://api.github.com/users/jtimberman/events{/privacy}","received_events_url":"https://api.github.com/users/jtimberman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9/commits","review_comments_url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9/comments","review_comment_url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/comments/{number}","comments_url":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/9/comments","statuses_url":"https://api.github.com/repos/opscode-cookbooks/pantry/statuses/d50c82676bfffd2c74bd280e9cd484c1a6efd26b","head":{"label":"pwelch:add_chefspec_tests","ref":"add_chefspec_tests","sha":"d50c82676bfffd2c74bd280e9cd484c1a6efd26b","user":{"login":"pwelch","id":568257,"avatar_url":"https://avatars.githubusercontent.com/u/568257?v=3","gravatar_id":"","url":"https://api.github.com/users/pwelch","html_url":"https://github.com/pwelch","followers_url":"https://api.github.com/users/pwelch/followers","following_url":"https://api.github.com/users/pwelch/following{/other_user}","gists_url":"https://api.github.com/users/pwelch/gists{/gist_id}","starred_url":"https://api.github.com/users/pwelch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwelch/subscriptions","organizations_url":"https://api.github.com/users/pwelch/orgs","repos_url":"https://api.github.com/users/pwelch/repos","events_url":"https://api.github.com/users/pwelch/events{/privacy}","received_events_url":"https://api.github.com/users/pwelch/received_events","type":"User","site_admin":false},"repo":{"id":29762335,"name":"pantry","full_name":"pwelch/pantry","owner":{"login":"pwelch","id":568257,"avatar_url":"https://avatars.githubusercontent.com/u/568257?v=3","gravatar_id":"","url":"https://api.github.com/users/pwelch","html_url":"https://github.com/pwelch","followers_url":"https://api.github.com/users/pwelch/followers","following_url":"https://api.github.com/users/pwelch/following{/other_user}","gists_url":"https://api.github.com/users/pwelch/gists{/gist_id}","starred_url":"https://api.github.com/users/pwelch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwelch/subscriptions","organizations_url":"https://api.github.com/users/pwelch/orgs","repos_url":"https://api.github.com/users/pwelch/repos","events_url":"https://api.github.com/users/pwelch/events{/privacy}","received_events_url":"https://api.github.com/users/pwelch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwelch/pantry","description":"Chef Pantry is a workstation automation cookbook","fork":true,"url":"https://api.github.com/repos/pwelch/pantry","forks_url":"https://api.github.com/repos/pwelch/pantry/forks","keys_url":"https://api.github.com/repos/pwelch/pantry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwelch/pantry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwelch/pantry/teams","hooks_url":"https://api.github.com/repos/pwelch/pantry/hooks","issue_events_url":"https://api.github.com/repos/pwelch/pantry/issues/events{/number}","events_url":"https://api.github.com/repos/pwelch/pantry/events","assignees_url":"https://api.github.com/repos/pwelch/pantry/assignees{/user}","branches_url":"https://api.github.com/repos/pwelch/pantry/branches{/branch}","tags_url":"https://api.github.com/repos/pwelch/pantry/tags","blobs_url":"https://api.github.com/repos/pwelch/pantry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwelch/pantry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwelch/pantry/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwelch/pantry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwelch/pantry/statuses/{sha}","languages_url":"https://api.github.com/repos/pwelch/pantry/languages","stargazers_url":"https://api.github.com/repos/pwelch/pantry/stargazers","contributors_url":"https://api.github.com/repos/pwelch/pantry/contributors","subscribers_url":"https://api.github.com/repos/pwelch/pantry/subscribers","subscription_url":"https://api.github.com/repos/pwelch/pantry/subscription","commits_url":"https://api.github.com/repos/pwelch/pantry/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwelch/pantry/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwelch/pantry/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwelch/pantry/issues/comments/{number}","contents_url":"https://api.github.com/repos/pwelch/pantry/contents/{+path}","compare_url":"https://api.github.com/repos/pwelch/pantry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwelch/pantry/merges","archive_url":"https://api.github.com/repos/pwelch/pantry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwelch/pantry/downloads","issues_url":"https://api.github.com/repos/pwelch/pantry/issues{/number}","pulls_url":"https://api.github.com/repos/pwelch/pantry/pulls{/number}","milestones_url":"https://api.github.com/repos/pwelch/pantry/milestones{/number}","notifications_url":"https://api.github.com/repos/pwelch/pantry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwelch/pantry/labels{/name}","releases_url":"https://api.github.com/repos/pwelch/pantry/releases{/id}","created_at":"2015-01-24T02:11:30Z","updated_at":"2015-01-24T02:11:30Z","pushed_at":"2015-01-24T02:19:38Z","git_url":"git://github.com/pwelch/pantry.git","ssh_url":"git@github.com:pwelch/pantry.git","clone_url":"https://github.com/pwelch/pantry.git","svn_url":"https://github.com/pwelch/pantry","homepage":null,"size":295,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opscode-cookbooks:master","ref":"master","sha":"310f36ae2751eb6b516aaae8327e5cb6085b95b1","user":{"login":"opscode-cookbooks","id":1537126,"avatar_url":"https://avatars.githubusercontent.com/u/1537126?v=3","gravatar_id":"","url":"https://api.github.com/users/opscode-cookbooks","html_url":"https://github.com/opscode-cookbooks","followers_url":"https://api.github.com/users/opscode-cookbooks/followers","following_url":"https://api.github.com/users/opscode-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/opscode-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/opscode-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opscode-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/opscode-cookbooks/orgs","repos_url":"https://api.github.com/users/opscode-cookbooks/repos","events_url":"https://api.github.com/users/opscode-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/opscode-cookbooks/received_events","type":"Organization","site_admin":false},"repo":{"id":22083586,"name":"pantry","full_name":"opscode-cookbooks/pantry","owner":{"login":"opscode-cookbooks","id":1537126,"avatar_url":"https://avatars.githubusercontent.com/u/1537126?v=3","gravatar_id":"","url":"https://api.github.com/users/opscode-cookbooks","html_url":"https://github.com/opscode-cookbooks","followers_url":"https://api.github.com/users/opscode-cookbooks/followers","following_url":"https://api.github.com/users/opscode-cookbooks/following{/other_user}","gists_url":"https://api.github.com/users/opscode-cookbooks/gists{/gist_id}","starred_url":"https://api.github.com/users/opscode-cookbooks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opscode-cookbooks/subscriptions","organizations_url":"https://api.github.com/users/opscode-cookbooks/orgs","repos_url":"https://api.github.com/users/opscode-cookbooks/repos","events_url":"https://api.github.com/users/opscode-cookbooks/events{/privacy}","received_events_url":"https://api.github.com/users/opscode-cookbooks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opscode-cookbooks/pantry","description":"Chef Pantry is a workstation automation cookbook","fork":false,"url":"https://api.github.com/repos/opscode-cookbooks/pantry","forks_url":"https://api.github.com/repos/opscode-cookbooks/pantry/forks","keys_url":"https://api.github.com/repos/opscode-cookbooks/pantry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opscode-cookbooks/pantry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opscode-cookbooks/pantry/teams","hooks_url":"https://api.github.com/repos/opscode-cookbooks/pantry/hooks","issue_events_url":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/events{/number}","events_url":"https://api.github.com/repos/opscode-cookbooks/pantry/events","assignees_url":"https://api.github.com/repos/opscode-cookbooks/pantry/assignees{/user}","branches_url":"https://api.github.com/repos/opscode-cookbooks/pantry/branches{/branch}","tags_url":"https://api.github.com/repos/opscode-cookbooks/pantry/tags","blobs_url":"https://api.github.com/repos/opscode-cookbooks/pantry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opscode-cookbooks/pantry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opscode-cookbooks/pantry/git/refs{/sha}","trees_url":"https://api.github.com/repos/opscode-cookbooks/pantry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opscode-cookbooks/pantry/statuses/{sha}","languages_url":"https://api.github.com/repos/opscode-cookbooks/pantry/languages","stargazers_url":"https://api.github.com/repos/opscode-cookbooks/pantry/stargazers","contributors_url":"https://api.github.com/repos/opscode-cookbooks/pantry/contributors","subscribers_url":"https://api.github.com/repos/opscode-cookbooks/pantry/subscribers","subscription_url":"https://api.github.com/repos/opscode-cookbooks/pantry/subscription","commits_url":"https://api.github.com/repos/opscode-cookbooks/pantry/commits{/sha}","git_commits_url":"https://api.github.com/repos/opscode-cookbooks/pantry/git/commits{/sha}","comments_url":"https://api.github.com/repos/opscode-cookbooks/pantry/comments{/number}","issue_comment_url":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/comments/{number}","contents_url":"https://api.github.com/repos/opscode-cookbooks/pantry/contents/{+path}","compare_url":"https://api.github.com/repos/opscode-cookbooks/pantry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opscode-cookbooks/pantry/merges","archive_url":"https://api.github.com/repos/opscode-cookbooks/pantry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opscode-cookbooks/pantry/downloads","issues_url":"https://api.github.com/repos/opscode-cookbooks/pantry/issues{/number}","pulls_url":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls{/number}","milestones_url":"https://api.github.com/repos/opscode-cookbooks/pantry/milestones{/number}","notifications_url":"https://api.github.com/repos/opscode-cookbooks/pantry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opscode-cookbooks/pantry/labels{/name}","releases_url":"https://api.github.com/repos/opscode-cookbooks/pantry/releases{/id}","created_at":"2014-07-21T23:15:22Z","updated_at":"2015-01-20T21:06:06Z","pushed_at":"2015-01-20T21:06:06Z","git_url":"git://github.com/opscode-cookbooks/pantry.git","ssh_url":"git@github.com:opscode-cookbooks/pantry.git","clone_url":"https://github.com/opscode-cookbooks/pantry.git","svn_url":"https://github.com/opscode-cookbooks/pantry","homepage":null,"size":295,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9"},"html":{"href":"https://github.com/opscode-cookbooks/pantry/pull/9"},"issue":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/9"},"comments":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/opscode-cookbooks/pantry/statuses/d50c82676bfffd2c74bd280e9cd484c1a6efd26b"}}}}