Skip to content

Instantly share code, notes, and snippets.

@bfeigin
Created September 25, 2012 22:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfeigin/3784742 to your computer and use it in GitHub Desktop.
Save bfeigin/3784742 to your computer and use it in GitHub Desktop.
shared_examples_for "a search batch finalizer enqueuer" do
it 'enqueues a search batch finalizer job if updating the search status achieves complete quorum' do
stub_complete_quorum(true)
puts described_class
debugger
perform rescue nil
job_class.should have_queued(subscription.key, batch_id)
end
end
described_class => PriorityGoogleSERPCollector
Within #perform, the code calls self.class which returns Object not PriorityGoo.. which it should.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment