Sha256: 6c767606eeb69aad0f35265dcb6ac043c26734c8198ef06aba7225660e8d6d4d
Contents?: true
Size: 503 Bytes
Versions: 8
Compression:
Stored size: 503 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class HelperModuleTest < MiniTest::Test 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
8 entries across 8 versions & 1 rubygems