spec/unit/inspect_spec.rb in finite_machine-0.5.0 vs spec/unit/inspect_spec.rb in finite_machine-0.6.0

- old
+ new

@@ -6,13 +6,13 @@ let(:machine) { double } subject(:transition) { described_class.new(machine, attrs) } context 'when inspecting' do - let(:attrs) { {name: :start, :foo => :bar } } + let(:attrs) { {name: :start, :foo => :bar, :baz => :daz} } it "displays name and transitions" do - expect(transition.inspect).to eql("<FiniteMachine::Transition name: start, transitions: [:foo] => bar, when: []>") + expect(transition.inspect).to eql("<#FiniteMachine::Transition @name=start, @transitions=foo -> bar, baz -> daz, @when=[]>") end end context 'when converting to string' do let(:attrs) { {name: :start, :foo => :bar } }