spec/unit/event/inspect_spec.rb in finite_machine-0.8.0 vs spec/unit/event/inspect_spec.rb in finite_machine-0.8.1
- old
+ new
@@ -12,6 +12,10 @@
it "adds multiple transitions" do
transition = double(:transition)
event << transition
expect(event.inspect).to eq("<#FiniteMachine::Event @name=test, @transitions=[#{transition.inspect}]>")
end
+
+ it "prints event name" do
+ expect(event.to_s).to eq('test')
+ end
end