spec/vehicle.rb in state_machine-mongoid-0.1.4 vs spec/vehicle.rb in state_machine-mongoid-0.1.5

- old
+ new

@@ -1,9 +1,9 @@ class Vehicle include Mongoid::Document field :state, :type => String, :default => "parked" - field :alarm_state, :type => String, :default => "active" + field :alarm_state, :type => Integer, :default => 1 state_machine :state, :initial => :parked do before_transition :parked => any - :parked, :do => :put_on_seatbelt after_transition :on => :crash, :do => :tow