diff --git a/README.textile b/README.textile index e21a73e..49c329c 100644 --- a/README.textile +++ b/README.textile @@ -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 h2. The source @@ -78,4 +78,4 @@ h2. Credit Written by "Sean Hussey":mailto:sean@seanhussey.com and "Josh Nichols":http://technicalpickles.com -Copyright 2008 Sean Hussey and Josh Nichols. \ No newline at end of file +Copyright 2008 Sean Hussey and Josh Nichols. diff --git a/lib/woulda/acts_as_state_machine/macros.rb b/lib/woulda/acts_as_state_machine/macros.rb index 4354130..6a8659a 100644 --- a/lib/woulda/acts_as_state_machine/macros.rb +++ b/lib/woulda/acts_as_state_machine/macros.rb @@ -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={}) @@ -82,4 +82,4 @@ def should_act_as_state_machine(opts={}) end end end -end \ No newline at end of file +end