test/base_test.rb in modern_times-0.2.2 vs test/base_test.rb in modern_times-0.2.3

- old
+ new

@@ -128,15 +128,15 @@ @manager = ModernTimes::Manager.new(:domain => 'DisallowedWorker') @manager.allowed_workers = [] end should "not be allowed" do - e = assert_raises ModernTimes::Exception do + e = assert_raises RuntimeError do @manager.add(DummyWorker, 2, {:foo => 42}) end assert_match %r%is not an allowed worker%, e.message - e = assert_raises ModernTimes::Exception do + e = assert_raises RuntimeError do @manager.add('FdajfsdklasdfWorker', 2, {:foo => 42}) end assert_match %r%Invalid class%, e.message end end