Sha256: ca606aa568578bfa6821cb3f502f3f56d37e4de9a855e9af31d410210f62ec99
Contents?: true
Size: 731 Bytes
Versions: 2
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe Finite::Transition do it 'has a to and a from' do transition = Finite::Transition.new({from: :state1, to: :state2}) expect(transition.from).to eq(:state1) expect(transition.to).to eq(:state2) end it 'equals transitions with the same to and from' do transition1 = Finite::Transition.new({from: :state1, to: :state2}) transition2 = Finite::Transition.new({from: :state1, to: :state3}) transition3 = Finite::Transition.new({from: :state4, to: :state2}) transition4 = Finite::Transition.new({from: :state1, to: :state2}) expect(transition1).not_to eq(transition2) expect(transition1).not_to eq(transition3) expect(transition1).to eq(transition4) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finite-1.1.0 | spec/transition_spec.rb |
finite-1.0.0 | spec/transition_spec.rb |