1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/models
Anil fc8b5efaa8 Add spec to make sure that :after_commit callback
does not get triggered if validation failed when
auto-save (bang) method is used.
2016-09-19 20:13:26 +05:30
..
active_record Add tests for multiple named scopes 2016-09-18 17:06:10 +03:00
callbacks Merge branch 'transition_success_callbacks' of https://github.com/brega/aasm into brega-transition_success_callbacks 2016-03-19 17:42:35 +13:00
dynamoid Add [dynamoid](http://github.com/Veraticus/Dynamoid) support. 2016-01-10 20:34:27 +08:00
mongo_mapper Add tests for multiple named scopes 2016-09-18 17:06:10 +03:00
mongoid Add tests for multiple named scopes 2016-09-18 17:06:10 +03:00
not_auto_loaded deprecate usage of AASM.aasm_state (setter method) 2013-11-30 21:30:07 +01:00
sequel extract Sequel test models into model files 2015-07-11 22:36:07 +12:00
basic_two_state_machines_example.rb add basic examples with two state machines 2015-07-20 20:55:47 +12:00
complex_example.rb more tests 2015-06-26 19:46:58 +12:00
conversation.rb more tests 2015-06-26 19:46:58 +12:00
default_state.rb distinguish between ActiveRecord class and plain Ruby classes 2015-05-15 22:37:28 +12:00
double_definer.rb callback :on_transition renamed to :after and changed its binding (see #59) 2014-09-12 14:30:36 +02:00
foo.rb working tests to prevent foo bleed across multiple scenarios 2015-11-05 10:46:06 -05:00
foo_callback_multiple.rb more tests 2015-06-26 19:46:58 +12:00
guard_with_params.rb Fix [#388] guard parameter for permissible states 2016-08-01 18:25:12 +05:30
guard_with_params_multiple.rb Fix [#388] guard parameter for permissible states 2016-08-01 18:25:12 +05:30
guardian.rb fix arity difference between Procs and lambdas (see #293 for details) 2016-01-05 23:51:11 +13:00
guardian_multiple.rb more tests 2015-06-26 19:46:58 +12:00
initial_state_proc.rb more tests 2015-06-26 19:46:58 +12:00
invalid_persistor.rb first set of ActiveRecord tests 2015-07-01 23:41:44 +12:00
multi_transitioner.rb Fix #392, Multiple transition when one of the transitions 2016-09-06 22:33:51 +05:30
namespaced_multiple_example.rb Allow namespacing methods and state constants 2015-09-22 16:22:05 -04:00
no_initial_state.rb more tests 2015-06-26 19:46:58 +12:00
parametrised_event.rb Merge branch 'transition_success_callbacks' of https://github.com/brega/aasm into brega-transition_success_callbacks 2016-03-19 17:42:35 +13:00
parametrised_event_multiple.rb more tests 2015-06-26 19:46:58 +12:00
process_with_new_dsl.rb made sure, old state callbacks are still working with the new dsl 2011-11-25 23:55:56 +01:00
provided_state.rb using default name (all tests green) 2015-05-26 21:29:17 +12:00
silencer.rb make sure to use override configuration options if state machine is defined more than once (see #287) 2015-12-08 22:55:44 +13:00
silent_persistor.rb Implement whiny persistence so that transition! will raise by default, mirroring ActiveRecord's behavior. 2016-06-18 22:27:50 -07:00
simple_custom_example.rb incorporate feedback using AASM configuration options 2016-02-05 15:32:34 -05:00
simple_example.rb let class names reflect its purpose (in tests) 2015-05-18 20:40:54 +12:00
simple_multiple_example.rb first tests for state machines with multiple state attributes 2015-05-26 21:29:17 +12:00
state_machine_with_failed_event.rb allow :send as event name #257 2016-01-08 16:08:43 +13:00
states_on_one_line_example.rb allow multiple states to be defined on one line 2015-12-02 02:38:56 -07:00
sub_class.rb add tests for subclassing classes with multiple state machines 2015-07-01 21:35:04 +12:00
sub_class_with_more_states.rb add tests for subclassing classes with multiple state machines 2015-07-01 21:35:04 +12:00
sub_classing.rb fix initializer to keep existing options (originating from superclass) 2012-04-02 11:44:53 +02:00
super_class.rb add tests for subclassing classes with multiple state machines 2015-07-01 21:35:04 +12:00
this_name_better_not_be_in_use.rb one file per test model class 2013-04-21 18:43:03 +02:00
transactor.rb pessmistic lock work 2016-02-05 15:28:35 -05:00
valid_state_name.rb more tests 2015-06-26 19:46:58 +12:00
validator.rb Add spec to make sure that :after_commit callback 2016-09-19 20:13:26 +05:30
worker.rb supporting ActiveRecord transactions when firing an event 2012-10-24 21:03:09 +13:00