aasm/spec
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
..
generators run ActiveRecord specs only if ActiveRecord is loaded 2017-02-10 23:03:19 +11:00
models Deep clone state machine during inheritance (with tests) (#429) 2017-03-08 12:28:27 +05:30
spec_helpers run ActiveRecord specs only if ActiveRecord is loaded 2017-02-10 23:03:19 +11:00
unit Deep clone state machine during inheritance (with tests) (#429) 2017-03-08 12:28:27 +05:30
database.rb Implement whiny persistence so that `transition!` will raise by default, mirroring ActiveRecord's behavior. 2016-06-18 22:27:50 -07:00
database.yml 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
en.yml Add spec to make sure that :after_commit callback 2016-09-19 20:13:26 +05:30
en_deprecated_style.yml added support for localized state names (on a class level, like Record.aasm.states.map(&:localized_name)) 2012-12-27 10:23:41 +13:00
spec_helper.rb move dynamoid loading and initialisation into its own file 2017-02-10 22:18:05 +11:00