class MotorcycleTest
Public Instance Methods
setup()
click to toggle source
# File test/functional/state_machine_test.rb, line 820 def setup @motorcycle = Motorcycle.new end
test_should_allow_park()
click to toggle source
# File test/functional/state_machine_test.rb, line 828 def test_should_allow_park assert @motorcycle.park end
test_should_allow_shift_up()
click to toggle source
# File test/functional/state_machine_test.rb, line 836 def test_should_allow_shift_up assert @motorcycle.shift_up end
test_should_be_in_idling_state()
click to toggle source
# File test/functional/state_machine_test.rb, line 824 def test_should_be_in_idling_state assert_equal 'idling', @motorcycle.state end
test_should_inherit_decibels_from_superclass()
click to toggle source
# File test/functional/state_machine_test.rb, line 852 def test_should_inherit_decibels_from_superclass @motorcycle.park assert_equal 0.0, @motorcycle.decibels end
test_should_not_allow_crash()
click to toggle source
# File test/functional/state_machine_test.rb, line 844 def test_should_not_allow_crash assert !@motorcycle.crash end
test_should_not_allow_ignite()
click to toggle source
# File test/functional/state_machine_test.rb, line 832 def test_should_not_allow_ignite assert !@motorcycle.ignite end
test_should_not_allow_repair()
click to toggle source
# File test/functional/state_machine_test.rb, line 848 def test_should_not_allow_repair assert !@motorcycle.repair end
test_should_not_allow_shift_down()
click to toggle source
# File test/functional/state_machine_test.rb, line 840 def test_should_not_allow_shift_down assert !@motorcycle.shift_down end
test_should_use_decibels_defined_in_state()
click to toggle source
# File test/functional/state_machine_test.rb, line 857 def test_should_use_decibels_defined_in_state @motorcycle.shift_up assert_equal 1.0, @motorcycle.decibels end