{"action":"created","comment":{"url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/comments/31378533","id":31378533,"diff_hunk":"@@ -56,11 +56,16 @@\n \t\tend\n \n \t\tit 'excute apt-get update' do\n+\t\t\tallow(File).to receive(:executable?).and_call_original\n+\t\t\tallow(File).to receive(:executable?).with('/usr/bin/apt-get').and_return(true)\n+\t\t\tallow(File).to receive(:exist?).and_call_original\n+\t\t\tallow(File).to receive(:exist?).with('/var/lib/apt/periodic/update-success-stamp').and_return(false)\n+\t\t\tallow(File).to receive(:exist?).with('/var/chef/cache/apt_compile_time_update_first_run').and_return(true)\n \t\t\texpect(chef_run).to include_recipe('apt')\n \t\t\texpect(chef_run).to run_bash('apt-get-update at compile time').with(\n \t\t\t\tcode: bash_code,\n \t\t\t\tignore_failure: true\n-\t\t\t)\n+\t\t\t).at_compile_time","path":"spec/w_common/default_spec.rb","position":14,"original_position":14,"commit_id":"22a041c840a8f25ac2ab17a7bff04b651b4f3b22","original_commit_id":"22a041c840a8f25ac2ab17a7bff04b651b4f3b22","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":"Tab detected.","created_at":"2015-05-30T06:58:08Z","updated_at":"2015-05-30T06:58:08Z","html_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25#discussion_r31378533","pull_request_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/comments/31378533"},"html":{"href":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25#discussion_r31378533"},"pull_request":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25","id":36561337,"html_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25","diff_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25.diff","patch_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25.patch","issue_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/25","number":25,"state":"open","locked":false,"title":"Fix chefspec test for apt-get","user":{"login":"joelhandwell","id":3857152,"avatar_url":"https://avatars.githubusercontent.com/u/3857152?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhandwell","html_url":"https://github.com/joelhandwell","followers_url":"https://api.github.com/users/joelhandwell/followers","following_url":"https://api.github.com/users/joelhandwell/following{/other_user}","gists_url":"https://api.github.com/users/joelhandwell/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhandwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhandwell/subscriptions","organizations_url":"https://api.github.com/users/joelhandwell/orgs","repos_url":"https://api.github.com/users/joelhandwell/repos","events_url":"https://api.github.com/users/joelhandwell/events{/privacy}","received_events_url":"https://api.github.com/users/joelhandwell/received_events","type":"User","site_admin":false},"body":"Fix following error while executing chefspec\r\n\r\n```\r\nFailures:\r\n\r\n  1) w_common::default with vmware tools disabled excute apt-get update\r\n     Failure/Error: expect(chef_run).to run_bash('apt-get-update at compile time').with(\r\n       expected \"bash[apt-get-update at compile time]\" actions [] to include :run\r\n     # ./spec/w_common/default_spec.rb:60:in `block (3 levels) in <top (required)>'\r\n```","created_at":"2015-05-30T06:58:05Z","updated_at":"2015-05-30T06:58:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99516a8a5f4fabf048153acc44ff6f5d2d00209c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25/commits","review_comments_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25/comments","review_comment_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/25/comments","statuses_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/statuses/22a041c840a8f25ac2ab17a7bff04b651b4f3b22","head":{"label":"joelhandwell:apt_fix","ref":"apt_fix","sha":"22a041c840a8f25ac2ab17a7bff04b651b4f3b22","user":{"login":"joelhandwell","id":3857152,"avatar_url":"https://avatars.githubusercontent.com/u/3857152?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhandwell","html_url":"https://github.com/joelhandwell","followers_url":"https://api.github.com/users/joelhandwell/followers","following_url":"https://api.github.com/users/joelhandwell/following{/other_user}","gists_url":"https://api.github.com/users/joelhandwell/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhandwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhandwell/subscriptions","organizations_url":"https://api.github.com/users/joelhandwell/orgs","repos_url":"https://api.github.com/users/joelhandwell/repos","events_url":"https://api.github.com/users/joelhandwell/events{/privacy}","received_events_url":"https://api.github.com/users/joelhandwell/received_events","type":"User","site_admin":false},"repo":{"id":29204974,"name":"php-ha-multi-tier-app-cookbook","full_name":"joelhandwell/php-ha-multi-tier-app-cookbook","owner":{"login":"joelhandwell","id":3857152,"avatar_url":"https://avatars.githubusercontent.com/u/3857152?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhandwell","html_url":"https://github.com/joelhandwell","followers_url":"https://api.github.com/users/joelhandwell/followers","following_url":"https://api.github.com/users/joelhandwell/following{/other_user}","gists_url":"https://api.github.com/users/joelhandwell/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhandwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhandwell/subscriptions","organizations_url":"https://api.github.com/users/joelhandwell/orgs","repos_url":"https://api.github.com/users/joelhandwell/repos","events_url":"https://api.github.com/users/joelhandwell/events{/privacy}","received_events_url":"https://api.github.com/users/joelhandwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook","description":"Chef cookbook to installs and configures PHP high availability web application with HAProxy, Varnish, Memcached, Percona XtraDB Cluster","fork":false,"url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook","forks_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/forks","keys_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/teams","hooks_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/hooks","issue_events_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/events","assignees_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/tags","blobs_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/languages","stargazers_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/stargazers","contributors_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/contributors","subscribers_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/subscribers","subscription_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/subscription","commits_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/merges","archive_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/downloads","issues_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/releases{/id}","created_at":"2015-01-13T18:44:01Z","updated_at":"2015-05-14T14:54:47Z","pushed_at":"2015-05-30T06:58:05Z","git_url":"git://github.com/joelhandwell/php-ha-multi-tier-app-cookbook.git","ssh_url":"git@github.com:joelhandwell/php-ha-multi-tier-app-cookbook.git","clone_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook.git","svn_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook","homepage":"","size":781,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"joelhandwell:master","ref":"master","sha":"04d7eb2df1eec97a68a30acbf824d0ffb75c5c60","user":{"login":"joelhandwell","id":3857152,"avatar_url":"https://avatars.githubusercontent.com/u/3857152?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhandwell","html_url":"https://github.com/joelhandwell","followers_url":"https://api.github.com/users/joelhandwell/followers","following_url":"https://api.github.com/users/joelhandwell/following{/other_user}","gists_url":"https://api.github.com/users/joelhandwell/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhandwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhandwell/subscriptions","organizations_url":"https://api.github.com/users/joelhandwell/orgs","repos_url":"https://api.github.com/users/joelhandwell/repos","events_url":"https://api.github.com/users/joelhandwell/events{/privacy}","received_events_url":"https://api.github.com/users/joelhandwell/received_events","type":"User","site_admin":false},"repo":{"id":29204974,"name":"php-ha-multi-tier-app-cookbook","full_name":"joelhandwell/php-ha-multi-tier-app-cookbook","owner":{"login":"joelhandwell","id":3857152,"avatar_url":"https://avatars.githubusercontent.com/u/3857152?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhandwell","html_url":"https://github.com/joelhandwell","followers_url":"https://api.github.com/users/joelhandwell/followers","following_url":"https://api.github.com/users/joelhandwell/following{/other_user}","gists_url":"https://api.github.com/users/joelhandwell/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhandwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhandwell/subscriptions","organizations_url":"https://api.github.com/users/joelhandwell/orgs","repos_url":"https://api.github.com/users/joelhandwell/repos","events_url":"https://api.github.com/users/joelhandwell/events{/privacy}","received_events_url":"https://api.github.com/users/joelhandwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook","description":"Chef cookbook to installs and configures PHP high availability web application with HAProxy, Varnish, Memcached, Percona XtraDB Cluster","fork":false,"url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook","forks_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/forks","keys_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/teams","hooks_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/hooks","issue_events_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/events{/number}","events_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/events","assignees_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/assignees{/user}","branches_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/branches{/branch}","tags_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/tags","blobs_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/statuses/{sha}","languages_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/languages","stargazers_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/stargazers","contributors_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/contributors","subscribers_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/subscribers","subscription_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/subscription","commits_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/contents/{+path}","compare_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/merges","archive_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/downloads","issues_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues{/number}","pulls_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls{/number}","milestones_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/milestones{/number}","notifications_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/labels{/name}","releases_url":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/releases{/id}","created_at":"2015-01-13T18:44:01Z","updated_at":"2015-05-14T14:54:47Z","pushed_at":"2015-05-30T06:58:05Z","git_url":"git://github.com/joelhandwell/php-ha-multi-tier-app-cookbook.git","ssh_url":"git@github.com:joelhandwell/php-ha-multi-tier-app-cookbook.git","clone_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook.git","svn_url":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook","homepage":"","size":781,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25"},"html":{"href":"https://github.com/joelhandwell/php-ha-multi-tier-app-cookbook/pull/25"},"issue":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/25"},"comments":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/joelhandwell/php-ha-multi-tier-app-cookbook/statuses/22a041c840a8f25ac2ab17a7bff04b651b4f3b22"}}}}