Sha256: 0db5276f6bb117b64c412abab7247009b474a85aaa47e9afd801695251a75fb2

Contents?: true

Size: 360 Bytes

Versions: 8

Compression:

Stored size: 360 Bytes

Contents

require "helper"

class Bender
  include Transitions

  state_machine do
    state :drinking
    state :smoking
    state :gambling
  end
end

class TestAvailableStatesListing < Test::Unit::TestCase
  test 'available_states should return the states for the state machine' do
    assert_equal [:drinking, :gambling, :smoking], Bender.available_states
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
transitions-0.1.8 test/machine/test_available_states_listing.rb
transitions-0.1.7 test/machine/test_available_states_listing.rb
transitions-0.1.6 test/machine/test_available_states_listing.rb
transitions-0.1.5 test/machine/test_available_states_listing.rb
transitions-0.1.4 test/machine/test_available_states_listing.rb
transitions-0.1.3 test/machine/test_available_states_listing.rb
transitions-0.1.2 test/machine/test_available_states_listing.rb
transitions-0.1.1 test/machine/test_available_states_listing.rb