class PathTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/path_test.rb, line 56 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @object = @klass.new end
test_should_raise_exception_if_invalid_option_specified()
click to toggle source
# File test/unit/path_test.rb, line 62 def test_should_raise_exception_if_invalid_option_specified exception = assert_raise(ArgumentError) {StateMachine::Path.new(@object, @machine, :invalid => true)} assert_equal 'Invalid key(s): invalid', exception.message end