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

86 commits

Author SHA1 Message Date
Thorsten Böttger
15a1146ae9 clearified and extended tests for Pavel's pull request (guards may have parameters, which should be able to be provided on fire check) 2012-09-26 12:32:56 +12:00
Pavel Gabriel
d5f6965bae accept params for may_event? and pass them to guard 2012-09-18 12:21:20 +03:00
Thorsten Böttger
d8a4417671 removed deprecation warning when localizing aasm state names (look at https://github.com/rubyist/aasm/issues/38 for details) 2012-06-06 22:32:52 +12:00
Thorsten Böttger
63f2b10212 getting rid of debug output when running the specs 2012-05-17 22:39:06 +12:00
Pascal Zumkehr
1acf14fc3c fix initializer to keep existing options (originating from superclass) 2012-04-02 11:44:53 +02:00
Thorsten Böttger
3860e57c72 bugfix: make sure that scopes are still generated, even with the new DSL 2012-02-23 00:06:08 +13:00
Thorsten Böttger
e121807e30 remove deprecation warning while testing (no matter which ActiveRecord version you use) 2012-02-22 23:26:33 +13:00
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
d39406106d make localizer specs independent from others 2012-01-16 17:04:03 +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
19275903a2 you may now disable whiny transactions (using the new dsl) 2011-11-26 20:49:46 +01:00
Thorsten Böttger
5981d23f0b moved exception handling into base class (away from event-fire 2011-11-26 20:34:25 +01:00
Thorsten Böttger
0c79ca0a56 small refactorings 2011-11-26 20:07:56 +01:00
Thorsten Böttger
ae98094ee8 deprecated AASM#human_state and AASM.human_event_name, which will be removed in AASM version 3 2011-11-26 18:56:37 +01:00
Thorsten Böttger
052c79df01 locator is a supporting class 2011-11-26 18:33:58 +01:00
Thorsten Böttger
20f4fed777 some little renamings 2011-11-26 01:10:05 +01:00
Thorsten Böttger
0a961c122f made sure, old state callbacks are still working with the new dsl 2011-11-25 23:55:56 +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
0d2d9a8006 new dsl, 1st step: providing new dsl, which uses the old one 2011-10-23 21:35:44 +02:00
Thorsten Böttger
4362da66dd renamed to indicate what the spec is all about 2011-10-16 21:12:28 +02:00
Thorsten Böttger
766e985158 cleaned up the specs 2011-10-15 17:45:24 +02:00
Thorsten Böttger
31258e7636 unified test and spec (using spec only now) 2011-10-15 17:32:28 +02:00
Thorsten Böttger
dc4abd783f added test for issue 2011-09-16 17:12:10 +02:00
Thorsten Böttger
3458f17f06 moved all test models into their own file to improve readibility 2011-09-16 16:57:23 +02:00
Thorsten Böttger
55fbd65fa9 avoiding naming conflict with using I18n module in AASM'ified class 2011-09-10 18:41:48 +02:00
Thorsten Böttger
6bc99dcc39 Merge branch 'master' of https://github.com/wickkidd/aasm into wickkidd-master
Conflicts:
	Rakefile
	spec/spec_helper.rb
2011-09-08 19:09:16 +02:00
Thorsten Böttger
6e820dee0a and removed usage of connection mock 2011-09-02 18:47:23 +02:00
Thorsten Böttger
d92a679def Merge pull request from etehtsea/i18n
I18n support
2011-09-02 09:40:44 -07: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
8e7921c67d whitespace cleanup 2011-07-04 02:09:17 +07:00
Ravi Bhim
7fe7e2ed57 Passing event arguments to the guard function 2011-03-21 20:01:45 -07:00
Konstantin Shabanov
f209c1f992 refactored module and spec 2011-02-13 02:09:41 +07:00
Konstantin Shabanov
b7852e29f8 added spec for i18n 2011-02-12 23:10:39 +07:00
Konstantin Shabanov
0d8b9ab108 migrate spec to RSpec2 2011-01-13 13:58:59 +06:00
Brian Kidd
b6faecf47f added an arity check for the :on_transition method to solve the n for 0 errors when your :on_transition method does NOT accept arguments. 2010-10-01 13:33:35 -04: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
Caius Durling
ef61951718 Fixing a failing spec 2010-08-28 03:17:07 +08:00
Wildfalcon
323036104e Updated the way error callbacks work
If a callback is declared (:error => :error_method) and error_method exists
then error_method is called if an error is raised

If a callback is declared but the method does not exist, then a NoMethodError
is raised if an error is raised

If no callback is declard, then any error raised will get propogated
2009-12-02 10:43:49 +00:00
Wildfalcon
3bb5fe0bfe Error callback now propgates exception if call back is declared (in aasm_event), but not defined 2009-12-01 11:29:55 +00:00
Wildfalcon
723622b8f8 Error callback for transition is now definable in aasm_event command 2009-12-01 10:59:48 +00:00
Wildfalcon
3cac5eb23d Fixed an typo 2009-12-01 10:36:28 +00:00
Wildfalcon
566eb3221e Fireing an event now calls aasm_error_callback if an exception is raised and aasm_error_callback is defined 2009-12-01 10:35:39 +00:00
Wildfalcon
88d4d0c126 Changed state change actions to allow halting the chain 2009-11-30 16:38:00 +00:00
Travis Tilley
80d7896ece Merge remote branch 'gpetrica/master' 2009-10-14 23:26:24 -04:00
Petrica Ghiurca
404a9d3103 support for multiple events for enter/exit states 2009-10-08 13:05:21 +03:00
Jacqui Maher
fe13954e93 Fixed conflicts after merging with rubyist-aasm 2009-09-17 15:06:24 -04:00