Skip to content

Commit

Permalink
Fixed typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanhussey committed Oct 4, 2008
1 parent 647fb45 commit 387f009
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end

# acts_as_state_machine
class OrderTest < Test::Unit::TestCase
should_act_as_state_machine :intial => :open, :states => [:closed], :events => {:close_order => {:to => :closed, :from :open}}
should_act_as_state_machine :initial => :open, :states => [:closed], :events => {:close_order => {:to => :closed, :from :open}}
end</code></pre>

h2. The source
Expand All @@ -78,4 +78,4 @@ h2. Credit

Written by "Sean Hussey":mailto:[email protected] and "Josh Nichols":http://technicalpickles.com

Copyright 2008 Sean Hussey and Josh Nichols.
Copyright 2008 Sean Hussey and Josh Nichols.
8 changes: 4 additions & 4 deletions lib/woulda/acts_as_state_machine/macros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ module Macros
# # check the inital state
# should_act_as_state_machine :initial => :open
#
# # check states in addition to :intial
# should_act_as_state_machine :intial => :open, :states => [:closed]
# # check states in addition to :initial
# should_act_as_state_machine :initial => :open, :states => [:closed]
#
# # check events and transitions
# should_act_as_state_machine :events => {:close_order => {:to => :closed, :from :open}}
#
# should_act_as_state_machine :intial => :open, :states => [:closed], :events => {:close_order => {:to => :closed, :from :open}}
# should_act_as_state_machine :initial => :open, :states => [:closed], :events => {:close_order => {:to => :closed, :from :open}}
# end
#
def should_act_as_state_machine(opts={})
Expand Down Expand Up @@ -82,4 +82,4 @@ def should_act_as_state_machine(opts={})
end
end
end
end
end

0 comments on commit 387f009

Please sign in to comment.