spec/event_spec.rb in finite-1.0.0 vs spec/event_spec.rb in finite-1.1.0
- old
+ new
@@ -40,13 +40,13 @@
end
end
it 'should create transitions' do
event = Finite::Event.new(:event1, &@block)
- event.transitions.count.should be(1)
- event.transitions[:state1].to.should eq(:state2)
- event.transitions[:state1].from.should eq(:state1)
+ expect(event.transitions.count).to eql(1)
+ expect(event.transitions[:state1].to).to eq(:state2)
+ expect(event.transitions[:state1].from).to eq(:state1)
end
it 'should create callbacks' do
event = Finite::Event.new(:event1, &@block)
@@ -59,6 +59,6 @@
it 'has to_s and inspect methods' do
event = Finite::Event.new(:event, &@block)
expect(event.to_s).to eq('event')
expect(event.inspect).to eq(:event)
end
-end
\ No newline at end of file
+end