Sha256: cd494bbd33b62cf58963b1bfb52a65d67d649913f261800e14887c9cef522dfa
Contents?: true
Size: 501 Bytes
Versions: 19
Compression:
Stored size: 501 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') class HelperModuleTest < Test::Unit::TestCase def setup @klass = Class.new @machine = StateMachine::Machine.new(@klass) @helper_module = StateMachine::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
19 entries across 19 versions & 9 rubygems