Skip to content

Commit

Permalink
Add one more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Aug 31, 2017
1 parent e0bdc1c commit e7eb09e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/shoryuken/worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class NewTestWorker
expect(NewTestWorker.get_shoryuken_options['queue']).to eq 'production_default'
end

it 'not change arguments' do
it 'does not change the original hash' do
class TestWorker
include Shoryuken::Worker

Expand All @@ -126,6 +126,7 @@ class TestWorker
end

expect(TestWorker::OPT['queue']).to eq(nil)
expect(TestWorker.get_shoryuken_options['queue']).to eq('default')
expect(TestWorker::OPT[:queue]).to eq(:default)
end

Expand Down

0 comments on commit e7eb09e

Please sign in to comment.