{"action":"created","comment":{"url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/comments/28244268","id":28244268,"diff_hunk":"@@ -1,5 +1,56 @@\n require 'rails_helper'\n \n RSpec.describe DestroyJob, type: :job do\n-  pending \"add some examples to (or delete) #{__FILE__}\"\n+  let(:worker) { described_class.new }\n+\n+  describe '#perform(job_id)' do\n+    subject { worker.perform(job.id) }\n+\n+    let(:bundle_task_client) { double(destroy_status: []) }\n+\n+    before do\n+      allow(TwitterBundleTasks::Client).to receive(:new) { bundle_task_client }\n+      allow(worker).to receive(:restore_cache) { Hash.new }\n+      allow(worker).to receive(:restore_cache).with(:filter_result, job.id) { [1, 2, 3] }\n+      allow(worker).to receive(:store_cache) { true }\n+    end\n+\n+    context 'when job passes in success' do\n+      let!(:job) { FactoryGirl.create :job, aasm_state: :filtered }\n+\n+      it 'returns with state completed' do\n+        subject\n+        job.reload\n+        expect(job).to be_completed\n+      end\n+\n+      it 'calls #destroy_status' do","path":"spec/jobs/destroy_job_spec.rb","position":28,"original_position":28,"commit_id":"28f104e2ff2411f72ba2377adbd832c74e55d347","original_commit_id":"28f104e2ff2411f72ba2377adbd832c74e55d347","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-04-13T14:51:08Z","updated_at":"2015-04-13T14:51:08Z","html_url":"https://github.com/cohakim/collect_and_destroy/pull/6#discussion_r28244268","pull_request_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/comments/28244268"},"html":{"href":"https://github.com/cohakim/collect_and_destroy/pull/6#discussion_r28244268"},"pull_request":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6","id":33170628,"html_url":"https://github.com/cohakim/collect_and_destroy/pull/6","diff_url":"https://github.com/cohakim/collect_and_destroy/pull/6.diff","patch_url":"https://github.com/cohakim/collect_and_destroy/pull/6.patch","issue_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/6","number":6,"state":"open","locked":false,"title":"Add spec","user":{"login":"cohakim","id":67264,"avatar_url":"https://avatars.githubusercontent.com/u/67264?v=3","gravatar_id":"","url":"https://api.github.com/users/cohakim","html_url":"https://github.com/cohakim","followers_url":"https://api.github.com/users/cohakim/followers","following_url":"https://api.github.com/users/cohakim/following{/other_user}","gists_url":"https://api.github.com/users/cohakim/gists{/gist_id}","starred_url":"https://api.github.com/users/cohakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cohakim/subscriptions","organizations_url":"https://api.github.com/users/cohakim/orgs","repos_url":"https://api.github.com/users/cohakim/repos","events_url":"https://api.github.com/users/cohakim/events{/privacy}","received_events_url":"https://api.github.com/users/cohakim/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-13T14:51:01Z","updated_at":"2015-04-13T14:51:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10b402ef2a49a09ca811defb4b2a440299eeffd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6/commits","review_comments_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6/comments","review_comment_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/6/comments","statuses_url":"https://api.github.com/repos/cohakim/collect_and_destroy/statuses/28f104e2ff2411f72ba2377adbd832c74e55d347","head":{"label":"cohakim:scaffold-20150413","ref":"scaffold-20150413","sha":"28f104e2ff2411f72ba2377adbd832c74e55d347","user":{"login":"cohakim","id":67264,"avatar_url":"https://avatars.githubusercontent.com/u/67264?v=3","gravatar_id":"","url":"https://api.github.com/users/cohakim","html_url":"https://github.com/cohakim","followers_url":"https://api.github.com/users/cohakim/followers","following_url":"https://api.github.com/users/cohakim/following{/other_user}","gists_url":"https://api.github.com/users/cohakim/gists{/gist_id}","starred_url":"https://api.github.com/users/cohakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cohakim/subscriptions","organizations_url":"https://api.github.com/users/cohakim/orgs","repos_url":"https://api.github.com/users/cohakim/repos","events_url":"https://api.github.com/users/cohakim/events{/privacy}","received_events_url":"https://api.github.com/users/cohakim/received_events","type":"User","site_admin":false},"repo":{"id":32225443,"name":"collect_and_destroy","full_name":"cohakim/collect_and_destroy","owner":{"login":"cohakim","id":67264,"avatar_url":"https://avatars.githubusercontent.com/u/67264?v=3","gravatar_id":"","url":"https://api.github.com/users/cohakim","html_url":"https://github.com/cohakim","followers_url":"https://api.github.com/users/cohakim/followers","following_url":"https://api.github.com/users/cohakim/following{/other_user}","gists_url":"https://api.github.com/users/cohakim/gists{/gist_id}","starred_url":"https://api.github.com/users/cohakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cohakim/subscriptions","organizations_url":"https://api.github.com/users/cohakim/orgs","repos_url":"https://api.github.com/users/cohakim/repos","events_url":"https://api.github.com/users/cohakim/events{/privacy}","received_events_url":"https://api.github.com/users/cohakim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cohakim/collect_and_destroy","description":"","fork":false,"url":"https://api.github.com/repos/cohakim/collect_and_destroy","forks_url":"https://api.github.com/repos/cohakim/collect_and_destroy/forks","keys_url":"https://api.github.com/repos/cohakim/collect_and_destroy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cohakim/collect_and_destroy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cohakim/collect_and_destroy/teams","hooks_url":"https://api.github.com/repos/cohakim/collect_and_destroy/hooks","issue_events_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/events{/number}","events_url":"https://api.github.com/repos/cohakim/collect_and_destroy/events","assignees_url":"https://api.github.com/repos/cohakim/collect_and_destroy/assignees{/user}","branches_url":"https://api.github.com/repos/cohakim/collect_and_destroy/branches{/branch}","tags_url":"https://api.github.com/repos/cohakim/collect_and_destroy/tags","blobs_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/refs{/sha}","trees_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cohakim/collect_and_destroy/statuses/{sha}","languages_url":"https://api.github.com/repos/cohakim/collect_and_destroy/languages","stargazers_url":"https://api.github.com/repos/cohakim/collect_and_destroy/stargazers","contributors_url":"https://api.github.com/repos/cohakim/collect_and_destroy/contributors","subscribers_url":"https://api.github.com/repos/cohakim/collect_and_destroy/subscribers","subscription_url":"https://api.github.com/repos/cohakim/collect_and_destroy/subscription","commits_url":"https://api.github.com/repos/cohakim/collect_and_destroy/commits{/sha}","git_commits_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/commits{/sha}","comments_url":"https://api.github.com/repos/cohakim/collect_and_destroy/comments{/number}","issue_comment_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/comments{/number}","contents_url":"https://api.github.com/repos/cohakim/collect_and_destroy/contents/{+path}","compare_url":"https://api.github.com/repos/cohakim/collect_and_destroy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cohakim/collect_and_destroy/merges","archive_url":"https://api.github.com/repos/cohakim/collect_and_destroy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cohakim/collect_and_destroy/downloads","issues_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues{/number}","pulls_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls{/number}","milestones_url":"https://api.github.com/repos/cohakim/collect_and_destroy/milestones{/number}","notifications_url":"https://api.github.com/repos/cohakim/collect_and_destroy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cohakim/collect_and_destroy/labels{/name}","releases_url":"https://api.github.com/repos/cohakim/collect_and_destroy/releases{/id}","created_at":"2015-03-14T18:13:47Z","updated_at":"2015-04-13T14:29:43Z","pushed_at":"2015-04-13T14:51:02Z","git_url":"git://github.com/cohakim/collect_and_destroy.git","ssh_url":"git@github.com:cohakim/collect_and_destroy.git","clone_url":"https://github.com/cohakim/collect_and_destroy.git","svn_url":"https://github.com/cohakim/collect_and_destroy","homepage":null,"size":492,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"cohakim:master","ref":"master","sha":"a546aa1be2a703b5a1afee680ee500ee06037ad3","user":{"login":"cohakim","id":67264,"avatar_url":"https://avatars.githubusercontent.com/u/67264?v=3","gravatar_id":"","url":"https://api.github.com/users/cohakim","html_url":"https://github.com/cohakim","followers_url":"https://api.github.com/users/cohakim/followers","following_url":"https://api.github.com/users/cohakim/following{/other_user}","gists_url":"https://api.github.com/users/cohakim/gists{/gist_id}","starred_url":"https://api.github.com/users/cohakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cohakim/subscriptions","organizations_url":"https://api.github.com/users/cohakim/orgs","repos_url":"https://api.github.com/users/cohakim/repos","events_url":"https://api.github.com/users/cohakim/events{/privacy}","received_events_url":"https://api.github.com/users/cohakim/received_events","type":"User","site_admin":false},"repo":{"id":32225443,"name":"collect_and_destroy","full_name":"cohakim/collect_and_destroy","owner":{"login":"cohakim","id":67264,"avatar_url":"https://avatars.githubusercontent.com/u/67264?v=3","gravatar_id":"","url":"https://api.github.com/users/cohakim","html_url":"https://github.com/cohakim","followers_url":"https://api.github.com/users/cohakim/followers","following_url":"https://api.github.com/users/cohakim/following{/other_user}","gists_url":"https://api.github.com/users/cohakim/gists{/gist_id}","starred_url":"https://api.github.com/users/cohakim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cohakim/subscriptions","organizations_url":"https://api.github.com/users/cohakim/orgs","repos_url":"https://api.github.com/users/cohakim/repos","events_url":"https://api.github.com/users/cohakim/events{/privacy}","received_events_url":"https://api.github.com/users/cohakim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cohakim/collect_and_destroy","description":"","fork":false,"url":"https://api.github.com/repos/cohakim/collect_and_destroy","forks_url":"https://api.github.com/repos/cohakim/collect_and_destroy/forks","keys_url":"https://api.github.com/repos/cohakim/collect_and_destroy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cohakim/collect_and_destroy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cohakim/collect_and_destroy/teams","hooks_url":"https://api.github.com/repos/cohakim/collect_and_destroy/hooks","issue_events_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/events{/number}","events_url":"https://api.github.com/repos/cohakim/collect_and_destroy/events","assignees_url":"https://api.github.com/repos/cohakim/collect_and_destroy/assignees{/user}","branches_url":"https://api.github.com/repos/cohakim/collect_and_destroy/branches{/branch}","tags_url":"https://api.github.com/repos/cohakim/collect_and_destroy/tags","blobs_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/refs{/sha}","trees_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cohakim/collect_and_destroy/statuses/{sha}","languages_url":"https://api.github.com/repos/cohakim/collect_and_destroy/languages","stargazers_url":"https://api.github.com/repos/cohakim/collect_and_destroy/stargazers","contributors_url":"https://api.github.com/repos/cohakim/collect_and_destroy/contributors","subscribers_url":"https://api.github.com/repos/cohakim/collect_and_destroy/subscribers","subscription_url":"https://api.github.com/repos/cohakim/collect_and_destroy/subscription","commits_url":"https://api.github.com/repos/cohakim/collect_and_destroy/commits{/sha}","git_commits_url":"https://api.github.com/repos/cohakim/collect_and_destroy/git/commits{/sha}","comments_url":"https://api.github.com/repos/cohakim/collect_and_destroy/comments{/number}","issue_comment_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/comments{/number}","contents_url":"https://api.github.com/repos/cohakim/collect_and_destroy/contents/{+path}","compare_url":"https://api.github.com/repos/cohakim/collect_and_destroy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cohakim/collect_and_destroy/merges","archive_url":"https://api.github.com/repos/cohakim/collect_and_destroy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cohakim/collect_and_destroy/downloads","issues_url":"https://api.github.com/repos/cohakim/collect_and_destroy/issues{/number}","pulls_url":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls{/number}","milestones_url":"https://api.github.com/repos/cohakim/collect_and_destroy/milestones{/number}","notifications_url":"https://api.github.com/repos/cohakim/collect_and_destroy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cohakim/collect_and_destroy/labels{/name}","releases_url":"https://api.github.com/repos/cohakim/collect_and_destroy/releases{/id}","created_at":"2015-03-14T18:13:47Z","updated_at":"2015-04-13T14:29:43Z","pushed_at":"2015-04-13T14:51:02Z","git_url":"git://github.com/cohakim/collect_and_destroy.git","ssh_url":"git@github.com:cohakim/collect_and_destroy.git","clone_url":"https://github.com/cohakim/collect_and_destroy.git","svn_url":"https://github.com/cohakim/collect_and_destroy","homepage":null,"size":492,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6"},"html":{"href":"https://github.com/cohakim/collect_and_destroy/pull/6"},"issue":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/6"},"comments":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/cohakim/collect_and_destroy/statuses/28f104e2ff2411f72ba2377adbd832c74e55d347"}}}}