Commit Graph

18 Commits

Author SHA1 Message Date
Thorsten Böttger 921cfdad5c ActiveRecord persistence can ignore validation when trying to save invalid models 2012-01-16 17:27:15 +01:00
Thorsten Böttger 996f7e9675 cleanup 2011-12-29 16:23:48 +01:00
Thorsten Böttger d1c036b188 spec tuning 2011-12-21 12:33:36 +01:00
Thorsten Böttger 8f0ff1b0ab version bump to 3.0.0 (new DSL) 2011-11-26 21:11:57 +01:00
Thorsten Böttger b22ceb2792 new dsl now supports changing the states column name 2011-11-25 23:39:37 +01:00
Thorsten Böttger 31258e7636 unified test and spec (using spec only now) 2011-10-15 17:32:28 +02:00
Thorsten Böttger cf18161abc using real database connections for testing to reduce dependency on Rails version (previously mocked away ActiveRecord connection, which is not used in Rails 3.1 anymore) 2011-08-31 23:49:09 +02:00
Konstantin Shabanov 0d8b9ab108 migrate spec to RSpec2 2011-01-13 13:58:59 +06:00
Travis Tilley ff1f9fbd5e make the NamedScopeMethods test -actually- test that the scope was defined, and fix the silently broken logic for defining scopes in rails 2.x 2010-09-13 00:02:47 -04:00
Travis Tilley 2734476175 fix tests with AR3, which will apparently attempt to log even when logger is nil 2010-08-27 17:08:18 -04:00
Travis Tilley d853e9cb26 fix various tests 2010-08-27 16:35:26 -04:00
Travis Tilley f62693b70c whitespace ninja 2009-05-27 20:33:04 -04:00
Nathaniel Bibler f87565f2e4 Added initial state Proc support.
Added more complex example to README
2009-02-26 12:36:35 -05:00
Josh Knowles f1748118ba Don't add named_scope if the ActiveRecord object responds to the method name already (such as 'new')
Signed-off-by: Scott Barron <scott@elitists.net>
2008-12-30 22:54:12 +08:00
Scott Barron 3d69497ee3 Take state column for AR persistance out of class variables and add them to the
StateMachine object.
2008-06-22 11:17:12 -04:00
Scott Barron 61b5327cc8 Fix AR specs and rcov target 2008-05-29 13:23:53 -07:00
Jeff Dean a0bb1c404c make sure the 2 fields are in sync by using before_validation_on_create 2008-04-29 01:58:05 -04:00
Jeff Dean cb6bd4f534 * Specs and bug fixes for the ActiveRecordPersistence, keeping persistence columns in sync
Allowing for nil values in states for active record
  New non-(!) methods that allow for firing events without persisting [Jeff Dean]
2008-04-29 01:27:56 -04:00