class MachineWithHelpersTest
Public Instance Methods
setup()
click to toggle source
# File test/unit/machine_test.rb, line 1064 def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @object = @klass.new end
test_should_throw_exception_with_invalid_scope()
click to toggle source
# File test/unit/machine_test.rb, line 1070 def test_should_throw_exception_with_invalid_scope assert_raise(RUBY_VERSION < '1.9' ? IndexError : KeyError) { @machine.define_helper(:invalid, :park) {} } end