test/test_sideband.rb in sideband-1.0.2 vs test/test_sideband.rb in sideband-1.0.3
- old
+ new
@@ -1,8 +1,8 @@
require 'helper'
-class TestSideband < MiniTest::Unit::TestCase
+class TestSideband < Minitest::Test
def test_autoinitialization
assert Sideband.queue << -> { 'work' }
end
@@ -15,29 +15,7 @@
def test_can_access_queue_or_send_jobs
Sideband.initialize! do
assert Sideband.queue(-> { 'work' })
assert Sideband.enqueue(-> { 'work' })
end
- end
-
- def test_manager_stored_in_thread_current
- Sideband.initialize! do
- assert_kind_of Sideband::Manager, ::Thread.current['sideband.manager']
- end
- end
-
- def test_can_be_used_in_separate_threads
- work_a, work_b = 'work', 'work'
- Sideband.initialize! do
- Sideband.queue << -> { work_a = 'finished' }
-
- Thread.new {
- Sideband.initialize! do
- Sideband.queue << -> { work_b = 'finished' }
- end
- }.join
- end
-
- assert_equal 'finished', work_a
- assert_equal 'finished', work_b
end
end