mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
cleaned up the specs
This commit is contained in:
parent
31258e7636
commit
766e985158
5 changed files with 5 additions and 8 deletions
19
spec/models/not_auto_loaded/process.rb
Normal file
19
spec/models/not_auto_loaded/process.rb
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
module Models
|
||||
class Process
|
||||
include AASM
|
||||
|
||||
aasm_state :sleeping
|
||||
aasm_state :running
|
||||
aasm_state :suspended
|
||||
|
||||
aasm_event :start do
|
||||
transitions :from => :sleeping, :to => :running
|
||||
end
|
||||
|
||||
aasm_event :stop do
|
||||
transitions :from => :running, :to => :suspended
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue