Sha256: 1f323db7d21bc85252d16660339f96484f70c62362c2a7c6b8bd97d44cb2fe09
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require 'helper' class TestWorker < Minitest::Test def test_can_queue_itself Sideband.initialize! do assert Sideband::Worker.new.enqueue assert Sideband::Worker.new.queue assert EmailWorker.new.enqueue assert EmailWorker.new.queue end end def test_raises_error_if_call_not_implemented assert_raises NotImplementedError do Sideband::Worker.new.call end end def test_call_implemented assert_equal 'finished', EmailWorker.new.call end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sideband-1.0.4 | test/test_worker.rb |
sideband-1.0.3 | test/test_worker.rb |