Sha256: b3d3aca3a692b7134f30d596c5efd674360341075d73e77821f7a2510c4bfbfa

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

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

class InvalidParallelTransitionTest < Test::Unit::TestCase
  def setup
    @object = Object.new
    @events = [:ignite, :disable_alarm]
    
    @invalid_transition = EnumStateMachine::InvalidParallelTransition.new(@object, @events)
  end
  
  def test_should_have_an_object
    assert_equal @object, @invalid_transition.object
  end
  
  def test_should_have_events
    assert_equal @events, @invalid_transition.events
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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