{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/42011781","id":42011781,"diff_hunk":"@@ -120,9 +120,11 @@\n     end\n \n     it \"should handle event properly\" do\n-      routine = [{\"policy\" => [\"src_vm\", \"vm_start\"]}]\n-      h = EmsEventHelper.new(@ems_events.last)\n-      -> { h.handle_routine(routine) }.should_not raise_error\n+      routine = [ { \"policy\" => [\"src_vm\", \"vm_start\"] } ]","path":"spec/lib/ems_event_helper_spec.rb","position":7,"original_position":7,"commit_id":"c7d1f7455452264af1d0bf9016a0d6eebce5eb90","original_commit_id":"c7d1f7455452264af1d0bf9016a0d6eebce5eb90","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"body":"think the old format for this looks right. did it have rubocops?","created_at":"2015-10-14T15:48:30Z","updated_at":"2015-10-14T15:48:30Z","html_url":"https://github.com/ManageIQ/manageiq/pull/4842#discussion_r42011781","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/42011781"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/4842#discussion_r42011781"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842","id":47564861,"html_url":"https://github.com/ManageIQ/manageiq/pull/4842","diff_url":"https://github.com/ManageIQ/manageiq/pull/4842.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/4842.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4842","number":4842,"state":"open","locked":false,"title":"Use automate method for EmsEvent to handle events.","user":{"login":"lfu","id":2593270,"avatar_url":"https://avatars.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"body":"Split from #4328.","created_at":"2015-10-13T17:43:54Z","updated_at":"2015-10-14T15:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4930a68d1dd1f805ec17cb5e311604f0d56b039e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4842/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/c7d1f7455452264af1d0bf9016a0d6eebce5eb90","head":{"label":"lfu:use_ems_event_automate_method","ref":"use_ems_event_automate_method","sha":"c7d1f7455452264af1d0bf9016a0d6eebce5eb90","user":{"login":"lfu","id":2593270,"avatar_url":"https://avatars.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"repo":{"id":20816972,"name":"manageiq","full_name":"lfu/manageiq","owner":{"login":"lfu","id":2593270,"avatar_url":"https://avatars.githubusercontent.com/u/2593270?v=3","gravatar_id":"","url":"https://api.github.com/users/lfu","html_url":"https://github.com/lfu","followers_url":"https://api.github.com/users/lfu/followers","following_url":"https://api.github.com/users/lfu/following{/other_user}","gists_url":"https://api.github.com/users/lfu/gists{/gist_id}","starred_url":"https://api.github.com/users/lfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lfu/subscriptions","organizations_url":"https://api.github.com/users/lfu/orgs","repos_url":"https://api.github.com/users/lfu/repos","events_url":"https://api.github.com/users/lfu/events{/privacy}","received_events_url":"https://api.github.com/users/lfu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lfu/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/lfu/manageiq","forks_url":"https://api.github.com/repos/lfu/manageiq/forks","keys_url":"https://api.github.com/repos/lfu/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lfu/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lfu/manageiq/teams","hooks_url":"https://api.github.com/repos/lfu/manageiq/hooks","issue_events_url":"https://api.github.com/repos/lfu/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/lfu/manageiq/events","assignees_url":"https://api.github.com/repos/lfu/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/lfu/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/lfu/manageiq/tags","blobs_url":"https://api.github.com/repos/lfu/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lfu/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lfu/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/lfu/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lfu/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/lfu/manageiq/languages","stargazers_url":"https://api.github.com/repos/lfu/manageiq/stargazers","contributors_url":"https://api.github.com/repos/lfu/manageiq/contributors","subscribers_url":"https://api.github.com/repos/lfu/manageiq/subscribers","subscription_url":"https://api.github.com/repos/lfu/manageiq/subscription","commits_url":"https://api.github.com/repos/lfu/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/lfu/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/lfu/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/lfu/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/lfu/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/lfu/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lfu/manageiq/merges","archive_url":"https://api.github.com/repos/lfu/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lfu/manageiq/downloads","issues_url":"https://api.github.com/repos/lfu/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/lfu/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/lfu/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/lfu/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lfu/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/lfu/manageiq/releases{/id}","created_at":"2014-06-13T20:33:14Z","updated_at":"2014-06-17T21:01:03Z","pushed_at":"2015-10-13T23:59:03Z","git_url":"git://github.com/lfu/manageiq.git","ssh_url":"git@github.com:lfu/manageiq.git","clone_url":"https://github.com/lfu/manageiq.git","svn_url":"https://github.com/lfu/manageiq","homepage":null,"size":89256,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ManageIQ:master","ref":"master","sha":"fea8e99e8ea20c14e37532339b3e4a8cda5adbad","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Cloud Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","created_at":"2014-06-13T02:31:26Z","updated_at":"2015-10-13T21:08:35Z","pushed_at":"2015-10-14T15:29:35Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":171501,"stargazers_count":161,"watchers_count":161,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":165,"mirror_url":null,"open_issues_count":445,"forks":165,"open_issues":445,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/4842"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/4842"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/4842/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4842/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/c7d1f7455452264af1d0bf9016a0d6eebce5eb90"}}}}