1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
Commit graph

4 commits

Author SHA1 Message Date
Peter M. Goldstein
caa9d9dcc7 Update specs to use 'expect' syntax using transpec. Loosed gemspec to allow rspec versions greater than 2.14.x 2014-01-11 08:10:59 -08:00
Thorsten Böttger
41ca5679bf deprecate usage of aasm_current_state (getter method) 2013-11-30 20:46:36 +01:00
James Herdman
1b422a537f AASM defines constants for each state name
Example:

  class Foo
    include AASM

    aasm do
      state :initialized
      state :calculated
      state :finalized
    end
  end

  > Foo::STATE_INITIALIZED
  => :initialized
  > Foo::STATE_CALCULATED
  => :calculated

You may find this useful in custom scopes when using ActiveRecord, or
when testing your classes.
2013-03-15 00:07:01 -04:00
Thorsten Böttger
292138f823 cleaning up specs 2012-12-04 16:27:47 +13:00