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

Version Path
enum_state_machine-0.8.0 test/unit/helper_module_test.rb
enum_state_machine-0.7.0 test/unit/helper_module_test.rb
enum_state_machine-0.6.0 test/unit/helper_module_test.rb
enum_state_machine-0.5.0 test/unit/helper_module_test.rb
enum_state_machine-0.4.1 test/unit/helper_module_test.rb
enum_state_machine-0.4.0 test/unit/helper_module_test.rb
enum_state_machine-0.3.0 test/unit/helper_module_test.rb
enum_state_machine-0.2.0 test/unit/helper_module_test.rb