aasm/spec/models
Tyler Hogan 77cd065eeb Deep clone state machine during inheritance (with tests) (#429)
* Deep clone state machine during inheritance.
Allows child classes to extend the parent state machine without modifying the parents state machine.

* Add tests

* Also need to clone global callbacks to support inheritance

* Added tests to ensure parent is not changed in inheritance
2017-03-08 12:28:27 +05:30
..
active_record run ActiveRecord specs only if ActiveRecord is loaded 2017-02-10 23:03:19 +11:00
callbacks Add before_success event on event layer 2016-12-19 11:29:19 +02: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 whiny_persistence support and some tests for Mongoid 2017-02-24 13:01:23 +05:30
not_auto_loaded
sequel
basic_two_state_machines_example.rb
complex_example.rb
conversation.rb
default_state.rb
double_definer.rb
foo.rb working tests to prevent foo bleed across multiple scenarios 2015-11-05 10:46:06 -05:00
foo_callback_multiple.rb
guard_with_params.rb Ensure nil arg is forwarded to callbacks 2016-10-05 14:23:08 +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
initial_state_proc.rb
multi_transitioner.rb Fix #392, Multiple transition when one of the transitions 2016-09-06 22:33:51 +05:30
multiple_transitions_that_differ_only_by_guard.rb Add test to verify the correct transition's callbacks actually run 2016-10-12 13:56:00 -07:00
namespaced_multiple_example.rb
no_initial_state.rb
parametrised_event.rb Ensure nil arg is forwarded to callbacks 2016-10-05 14:23:08 +05:30
parametrised_event_multiple.rb
process_with_new_dsl.rb
provided_state.rb
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
simple_custom_example.rb incorporate feedback using AASM configuration options 2016-02-05 15:32:34 -05:00
simple_example.rb
simple_multiple_example.rb Add binding event (#438) 2017-02-28 15:25:06 +05:30
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 Deep clone state machine during inheritance (with tests) (#429) 2017-03-08 12:28:27 +05:30
sub_class_with_more_states.rb
sub_classing.rb
super_class.rb
this_name_better_not_be_in_use.rb
valid_state_name.rb