Created
September 24, 2014 10:18
-
-
Save artofhuman/95fb6b7ed280b01f5f4d to your computer and use it in GitHub Desktop.
resque rspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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