aasm/spec/unit
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
..
persistence Add whiny_persistence support and some tests for Mongoid 2017-02-24 13:01:23 +05:30
api_spec.rb run ActiveRecord specs only if ActiveRecord is loaded 2017-02-10 23:03:19 +11:00
basic_two_state_machines_example_spec.rb add basic examples with two state machines 2015-07-20 20:55:47 +12:00
callback_multiple_spec.rb Conform error expectations to rspec standard, remove #safe_error 2015-11-15 20:22:58 -08:00
callbacks_spec.rb Add before_success event on event layer 2016-12-19 11:29:19 +02:00
complex_example_spec.rb let class names reflect its purpose (in tests) 2015-05-15 22:43:36 +12:00
complex_multiple_example_spec.rb add basic examples with two state machines 2015-07-20 20:55:47 +12:00
edge_cases_spec.rb handle edge cases when a state machine is accessed which doesn't exist 2015-08-05 22:00:22 +12:00
event_multiple_spec.rb more tests 2015-06-26 19:46:58 +12:00
event_naming_spec.rb allow :send as event name #257 2016-01-08 16:08:43 +13:00
event_spec.rb Ensure nil arg is forwarded to callbacks 2016-10-05 14:23:08 +05:30
exception_spec.rb Eager error message 2016-03-15 22:59:35 +03:00
guard_multiple_spec.rb more tests 2015-06-26 19:46:58 +12:00
guard_spec.rb fix arity difference between Procs and lambdas (see #293 for details) 2016-01-05 23:51:11 +13:00
guard_with_params_multiple_spec.rb Fix [#388] guard parameter for permissible states 2016-08-01 18:25:12 +05:30
guard_with_params_spec.rb Ensure nil arg is forwarded to callbacks 2016-10-05 14:23:08 +05:30
initial_state_multiple_spec.rb more tests 2015-06-26 19:46:58 +12:00
initial_state_spec.rb let class names reflect its purpose (in tests) 2015-05-15 22:50:29 +12:00
inspection_multiple_spec.rb add more complex example for ActiveRecord, when two state machines are defined in a class 2015-07-10 22:47:04 +12:00
inspection_spec.rb Fix #392, Multiple transition when one of the transitions 2016-09-06 22:33:51 +05:30
localizer_spec.rb run ActiveRecord specs only if ActiveRecord is loaded 2017-02-10 23:03:19 +11:00
memory_leak_spec.rb Support for object proxies for RubyMotion ! 2016-03-19 03:41:04 +01:00
multiple_transitions_that_differ_only_by_guard_spec.rb Add test to verify the correct transition's callbacks actually run 2016-10-12 13:56:00 -07:00
namespaced_multiple_example_spec.rb Allow namespacing methods and state constants 2015-09-22 16:22:05 -04:00
new_dsl_spec.rb 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
override_warning_spec.rb reduce warning output when running specs 2017-02-10 22:00:03 +11:00
readme_spec.rb allow multiple states to be defined on one line 2015-12-02 02:38:56 -07:00
reloading_spec.rb improve test description 2015-07-01 21:35:18 +12:00
rspec_matcher_spec.rb support RSpec matcher allow_transition_to 2015-10-31 00:30:19 +13:00
simple_custom_example_spec.rb incorporate feedback using AASM configuration options 2016-02-05 15:32:34 -05:00
simple_example_spec.rb let class names reflect its purpose (in tests) 2015-05-18 20:40:54 +12:00
simple_multiple_example_spec.rb Add binding event (#438) 2017-02-28 15:25:06 +05:30
state_spec.rb make sure to use parameterised aasm everywhere 2015-05-26 21:29:17 +12:00
states_on_one_line_example_spec.rb allow multiple states to be defined on one line 2015-12-02 02:38:56 -07:00
subclassing_multiple_spec.rb Deep clone state machine during inheritance (with tests) (#429) 2017-03-08 12:28:27 +05:30
subclassing_spec.rb Deep clone state machine during inheritance (with tests) (#429) 2017-03-08 12:28:27 +05:30
transition_spec.rb Fix a transition success callback issue 2016-05-13 16:01:40 +09:00