mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
18 lines
416 B
Ruby
18 lines
416 B
Ruby
|
require 'helper'
|
||
|
require 'sidekiq/client'
|
||
|
|
||
|
class TestClient < MiniTest::Unit::TestCase
|
||
|
def test_argument_handling
|
||
|
assert_raises ArgumentError do
|
||
|
Sidekiq::Client.push('foo', 1)
|
||
|
end
|
||
|
|
||
|
assert_raises ArgumentError do
|
||
|
Sidekiq::Client.push('foo', :class => 'Foo', :noargs => [1, 2])
|
||
|
end
|
||
|
|
||
|
count = Sidekiq::Client.push('foo', :class => 'Foo', :args => [1, 2])
|
||
|
assert count > 0
|
||
|
end
|
||
|
end
|