Sha256: ce811141401f020a00b2c7e21f7598e7f4bafe68a6fa0404a5cdf24173d731f4

Contents?: true

Size: 836 Bytes

Versions: 4

Compression:

Stored size: 836 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

class MatcherHelpersAllTest < Test::Unit::TestCase
  include EnumStateMachine::MatcherHelpers
  
  def setup
    @matcher = all
  end
  
  def test_should_build_an_all_matcher
    assert_equal EnumStateMachine::AllMatcher.instance, @matcher
  end
end

class MatcherHelpersAnyTest < Test::Unit::TestCase
  include EnumStateMachine::MatcherHelpers
  
  def setup
    @matcher = any
  end
  
  def test_should_build_an_all_matcher
    assert_equal EnumStateMachine::AllMatcher.instance, @matcher
  end
end

class MatcherHelpersSameTest < Test::Unit::TestCase
  include EnumStateMachine::MatcherHelpers
  
  def setup
    @matcher = same
  end
  
  def test_should_build_a_loopback_matcher
    assert_equal EnumStateMachine::LoopbackMatcher.instance, @matcher
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enum_state_machine-0.1.1 test/unit/matcher_helpers_test.rb
enum_state_machine-0.1.0 test/unit/matcher_helpers_test.rb
enum_state_machine-0.0.2 test/unit/matcher_helpers_test.rb
enum_state_machine-0.0.1 test/unit/matcher_helpers_test.rb