test/test_condition.rb in god-0.13.4 vs test/test_condition.rb in god-0.13.5
- old
+ new
@@ -1,20 +1,20 @@
require File.dirname(__FILE__) + '/helper'
class BadlyImplementedCondition < PollCondition
end
-class TestCondition < Test::Unit::TestCase
+class TestCondition < Minitest::Test
# generate
def test_generate_should_return_an_object_corresponding_to_the_given_type
assert_equal Conditions::ProcessRunning, Condition.generate(:process_running, nil).class
end
def test_generate_should_raise_on_invalid_type
- assert_raise NoSuchConditionError do
+ assert_raises NoSuchConditionError do
Condition.generate(:foo, nil)
end
end
def test_generate_should_abort_on_event_condition_without_loaded_event_system
@@ -43,10 +43,10 @@
# test
def test_test_should_raise_if_not_defined_in_subclass
c = BadlyImplementedCondition.new
- assert_raise AbstractMethodNotOverriddenError do
+ assert_raises AbstractMethodNotOverriddenError do
c.test
end
end
end