spec/state_spec.rb in finite-1.0.0 vs spec/state_spec.rb in finite-1.1.0
- old
+ new
@@ -4,11 +4,11 @@
before(:each) do
@name = :state_name
end
it 'has a name' do
- Finite::State.new(@name).name.should eq(:state_name)
+ expect(Finite::State.new(@name).name).to eq(:state_name)
end
context 'equality' do
it 'equals a symbol of the same name' do
state = Finite::State.new(@name)
expect(state).to eq(:state_name)
@@ -31,6 +31,6 @@
it 'has to_s and inspect methods' do
state = Finite::State.new(@name)
expect(state.to_s).to eq('state_name')
expect(state.inspect).to eq(:state_name)
end
-end
\ No newline at end of file
+end