Sha256: 0c2afead65cab1547abffd237ec553c149f56a64a4c2ec964bbfbb0fd128e36a
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class HelperModuleTest < Test::Unit::TestCase def setup @klass = Class.new @machine = EnumStateMachine::Machine.new(@klass) @helper_module = EnumStateMachine::HelperModule.new(@machine, :instance) end def test_should_not_have_a_name assert_equal '', @helper_module.name.to_s end def test_should_provide_human_readable_to_s assert_equal "#{@klass} :state instance helpers", @helper_module.to_s end end
Version data entries
4 entries across 4 versions & 1 rubygems