spec/unit/transition/inspect_spec.rb in finite_machine-0.10.2 vs spec/unit/transition/inspect_spec.rb in finite_machine-0.11.0

- old
+ new

@@ -6,18 +6,18 @@ let(:machine) { double(:machine) } subject(:transition) { described_class.new(machine, attrs) } context 'when inspecting' do - let(:attrs) { {name: :start, parsed_states: { :foo => :bar, :baz => :daz } } } + let(:attrs) { {name: :start, states: { :foo => :bar, :baz => :daz } } } it "displays name and transitions" do 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, parsed_states: { :foo => :bar } } } + let(:attrs) { {name: :start, states: { :foo => :bar } } } it "displays name and transitions" do expect(transition.to_s).to eql("start") end end