spec/unit/target_spec.rb in finite_machine-0.6.1 vs spec/unit/target_spec.rb in finite_machine-0.7.0
- old
+ new
@@ -131,10 +131,10 @@
on_enter :reverse do |event|
called << 'on_enter_reverse'
turn_reverse_lights_on
forward('Piotr!')
end
- on_enter :forward do |event, name|
+ on_before :forward do |event, name|
called << "on_enter_forward with #{name}"
end
}
end
end