Sha256: e8bfca44d8c07d1f49678a18e41fbd0db094dc7bbad8d6e2c8d9728fd4f0432b

Contents?: true

Size: 346 Bytes

Versions: 25

Compression:

Stored size: 346 Bytes

Contents

# An invalid example.
class InvalidStates
  include DataMapper::Resource

  property :id, Serial

  is :state_machine do
    event :sunrise
    event :sunset
  end

  # The next lines are intentionally incorrect.
  #
  # 'state' only makes sense in a block under 'is :state_machine'
  state :light
  state :dark

end

InvalidStates.auto_migrate!

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
ardm-is-state_machine-1.2.0 spec/examples/invalid_states.rb
dm-is-state_machine-1.2.0 spec/examples/invalid_states.rb
dm-is-state_machine-1.2.0.rc2 spec/examples/invalid_states.rb
dm-is-state_machine-1.2.0.rc1 spec/examples/invalid_states.rb
dm-is-state_machine-1.1.0 spec/examples/invalid_states.rb
dm-is-state_machine-1.1.0.rc3 spec/examples/invalid_states.rb
dm-is-state_machine-1.1.0.rc2 spec/examples/invalid_states.rb
dm-is-state_machine-1.1.0.rc1 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.2 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.1 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.0 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.0.rc3 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.0.rc2 spec/examples/invalid_states.rb
dm-is-state_machine-1.0.0.rc1 spec/examples/invalid_states.rb
dm-is-state_machine-0.10.2 spec/examples/invalid_states.rb
dm-is-state_machine-0.10.1 spec/examples/invalid_states.rb
dm-is-state_machine-0.10.0 spec/examples/invalid_states.rb
dm-is-state_machine-0.9.11 spec/examples/invalid_states.rb
dm-is-state_machine-0.9.6 spec/examples/invalid_states.rb
dm-is-state_machine-0.9.7 spec/examples/invalid_states.rb