spec/models/valid_state_name.rb in aasm-4.2.0 vs spec/models/valid_state_name.rb in aasm-4.3.0

- old
+ new

@@ -7,5 +7,17 @@ event :valid do transitions :to => :valid, :from => [:invalid] end end end + +class ValidStateNameMultiple + include AASM + aasm(:left) do + state :invalid, :initial => true + state :valid + + event :valid do + transitions :to => :valid, :from => [:invalid] + end + end +end