Sha256: af9e1504ca4bba735e1bb3c831751be87b73e0f3c1d74d2637e3a417b7a8a66c

Contents?: true

Size: 545 Bytes

Versions: 31

Compression:

Stored size: 545 Bytes

Contents

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

class InvalidEventTest < Test::Unit::TestCase
  def setup
    @object = Object.new
    @invalid_event = StateMachine::InvalidEvent.new(@object, :invalid)
  end
  
  def test_should_have_an_object
    assert_equal @object, @invalid_event.object
  end
  
  def test_should_have_an_event
    assert_equal :invalid, @invalid_event.event
  end
  
  def test_should_generate_a_message
    assert_equal ':invalid is an unknown state machine event', @invalid_event.message
  end
end

Version data entries

31 entries across 31 versions & 10 rubygems

Version Path
state_machine_updated_for_ruby_3_2-2.0.0 test/unit/invalid_event_test.rb
telvue_state_machine-1.2.3 test/unit/invalid_event_test.rb
telvue_state_machine-1.2.2 test/unit/invalid_event_test.rb
state_machine_deuxito-0.0.1 test/unit/invalid_event_test.rb
telvue_state_machine-1.2.1 test/unit/invalid_event_test.rb
cm-state_machine-1.2.0.1 test/unit/invalid_event_test.rb
spree-state_machine-2.0.0.beta4 test/unit/invalid_event_test.rb
spree-state_machine-2.0.0.beta3 test/unit/invalid_event_test.rb
spree-state_machine-2.0.0.beta2 test/unit/invalid_event_test.rb
spree-state_machine-2.0.0.beta1 test/unit/invalid_event_test.rb
culturecode-state_machine-1.2.1 test/unit/invalid_event_test.rb
automat-1.2.0 test/unit/invalid_event_test.rb
glebtv_state_machine-1.3.0 test/unit/invalid_event_test.rb
state_machine-1.2.0 test/unit/invalid_event_test.rb
state_machine-1.1.2 test/unit/invalid_event_test.rb
state_machine-1.1.1 test/unit/invalid_event_test.rb
state_machine-1.1.0 test/unit/invalid_event_test.rb
state_machine-1.0.3 test/unit/invalid_event_test.rb
hsume2-state_machine-1.0.5 test/unit/invalid_event_test.rb
state_machine-1.0.2 test/unit/invalid_event_test.rb