class HelperModuleTest

Public Instance Methods

setup() click to toggle source
# File test/unit/helper_module_test.rb, line 4
def setup
  @klass = Class.new
  @machine = StateMachine::Machine.new(@klass)
  @helper_module = StateMachine::HelperModule.new(@machine, :instance)
end
test_should_not_have_a_name() click to toggle source
# File test/unit/helper_module_test.rb, line 10
def test_should_not_have_a_name
  assert_equal '', @helper_module.name.to_s
end
test_should_provide_human_readable_to_s() click to toggle source
# File test/unit/helper_module_test.rb, line 14
def test_should_provide_human_readable_to_s
  assert_equal "#{@klass} :state instance helpers", @helper_module.to_s
end