Sha256: f1e0b2837e8249f0f593346c0873b24f75b8fa5bea37a938424b5521d7ab2dbc
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
require 'spec_helper' describe Motorcycle do let(:motorcycle) { Motorcycle.new } it 'should_be_in_idling_state' do assert_equal 'idling', motorcycle.state end it 'should_allow_park' do assert motorcycle.park end it 'should_not_allow_ignite' do assert !motorcycle.ignite end it 'should_allow_shift_up' do assert motorcycle.shift_up end it 'should_not_allow_shift_down' do assert !motorcycle.shift_down end it 'should_not_allow_crash' do assert !motorcycle.crash end it 'should_not_allow_repair' do assert !motorcycle.repair end it 'should_inherit_decibels_from_superclass' do motorcycle.park assert_equal 0.0, motorcycle.decibels end it 'should_use_decibels_defined_in_state' do motorcycle.shift_up assert_equal 1.0, motorcycle.decibels end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
state_machines-0.0.2 | spec/models/motorcycle_spec.rb |
state_machines-0.0.1 | spec/models/motorcycle_spec.rb |