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

16 commits

Author SHA1 Message Date
Luke Roberts
5a8454221f reference state machine object and event in invalid transition error so end user can intelligently handle 2015-03-01 20:08:45 -08:00
Thorsten Böttger
98dc66fa1c using RSpec 3 now 2014-12-14 15:05:16 +01:00
Thorsten Böttger
34de314baa using RSpec 2.99 now (preparing RSpec 3) 2014-12-14 14:53:57 +01:00
Thorsten Böttger
8f7f1b2da8 bugfix: avoid Rails autoloading conflicts (see #137 and #139) 2014-11-28 22:22:43 +01:00
Thorsten Böttger
7d32335b60 Merge branch 'master' into aasm4
Conflicts:
	CHANGELOG.md
	lib/aasm/event.rb
	lib/aasm/transition.rb
2014-11-15 12:24:56 +01:00
Joiey Seeley
b65c951160 Removed missed byebug requirement. 2014-11-08 01:29:32 -06:00
Joiey Seeley
92c9175574 Added tags file to gitignore. This is the index file created by ctags
which is used by some text editors and is developer environment
specific.

Added the option to use :if syntax as syntactic sugar for guard.

Added the option to use :unless syntax which essentially behaves
as a negated guard.

Added a couple of tests for the :unless syntax since the logic was
slightly different.

Noticed a couple of tests were just returning true/false at
the end rather than checking for expectations.  Fixed a couple
of those; still some remaining.

Changed AASM#perform method to allowed?
2014-11-08 00:44:24 -06:00
Thorsten Böttger
da237f0ed4 following @stiff, and writing a better test :) 2014-09-29 22:23:25 +02:00
Thorsten Böttger
72b0257734 callback :on_transition renamed to :after and changed its binding (see #59) 2014-09-12 14:30:36 +02:00
Thorsten Böttger
ca88fefd01 support reading from- and to-state during on_transition callback #100 2014-01-27 21:51:38 +01:00
Peter M. Goldstein
caa9d9dcc7 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
Donald Plummer
67e1d23046 Fix transition test to not pass args
This fixes the negative case to actually test the negative case, instead
of the positive case.
2013-11-20 15:18:35 -08:00
Thorsten Böttger
1c6a6367e0 Merge branch 'master' of https://github.com/Intrepidd/aasm into Intrepidd-master
Conflicts:
	lib/aasm/persistence/active_record_persistence.rb
2013-11-18 22:30:02 +01:00
Thorsten Böttger
ad48863e7a using the latest version of rspec 2013-11-15 11:19:26 +01:00
Adrien Siami
46878f9c3e Allow a block to be called when running a transition 2013-09-03 13:13:53 +02:00
Thorsten Böttger
d88fa9f2bc refactored SupportClasses away 2013-02-22 16:02:40 +13:00
Renamed from spec/unit/supporting_classes/transition_spec.rb (Browse further)