test/unit/harness_test.rb in harness-0.3.0 vs test/unit/harness_test.rb in harness-0.4.0

- old
+ new

@@ -2,28 +2,28 @@ class HarnessModuleTest < MiniTest::Unit::TestCase def test_can_set_the_adapter_with_a_symbol Harness.config.adapter = :memory - assert_equal Harness::MemoryAdapter, Harness.config.adapter + assert_kind_of Harness::MemoryAdapter, Harness.config.adapter end - def test_can_set_the_adapter_with_a_class - Harness.config.adapter = Harness::MemoryAdapter + def test_can_set_the_adapter_with_an_adapter_instance + Harness.config.adapter = Harness::MemoryAdapter.new - assert_equal Harness::MemoryAdapter, Harness.config.adapter + assert_kind_of Harness::MemoryAdapter, Harness.config.adapter end def test_can_set_the_queue_with_a_symbol - Harness.config.queue = :syncronous + Harness.config.queue = :synchronous - assert_equal Harness::SyncronousQueue, Harness.config.queue + assert_kind_of Harness::SynchronousQueue, Harness.config.queue end - def test_can_set_the_queue_with_a_class - Harness.config.adapter = Harness::SyncronousQueue + def test_can_set_the_queue_with_a_queue_instance + Harness.config.queue = Harness::SynchronousQueue.new - assert_equal Harness::SyncronousQueue, Harness.config.queue + assert_kind_of Harness::SynchronousQueue, Harness.config.queue end def test_uses_method_missing_to_configure_adapters Harness.config.librato.email = 'foo'