Skip to content

Instantly share code, notes, and snippets.

@artofhuman
Created September 24, 2014 10:18
Show Gist options
  • Save artofhuman/95fb6b7ed280b01f5f4d to your computer and use it in GitHub Desktop.
Save artofhuman/95fb6b7ed280b01f5f4d to your computer and use it in GitHub Desktop.
resque rspec
10 context 'when update products with valid data' do
9 it do
8 meta = described_class.enqueue(company.id, bind_data)
7 binding.pry #NOTE: debugger
6
5 Resque.inline = true
4 worker = Resque::Worker.new(:company_products)
3 binding.pry #NOTE: debugger
2 worker.work(0)
1
29 meta = described_class.get_meta(meta.meta_id)
1 expect(meta['payload']).to eq({'errors' => {}})
2 end
3 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment