class CarTest
Public Instance Methods
setup()
click to toggle source
# File test/functional/state_machine_test.rb, line 864 def setup @car = Car.new end
test_should_allow_ignite()
click to toggle source
# File test/functional/state_machine_test.rb, line 880 def test_should_allow_ignite assert @car.ignite assert_equal 'idling', @car.state end
test_should_allow_reverse()
click to toggle source
# File test/functional/state_machine_test.rb, line 905 def test_should_allow_reverse assert @car.reverse end
test_should_be_in_parked_state()
click to toggle source
# File test/functional/state_machine_test.rb, line 868 def test_should_be_in_parked_state assert_equal 'parked', @car.state end
test_should_not_allow_crash()
click to toggle source
# File test/functional/state_machine_test.rb, line 897 def test_should_not_allow_crash assert !@car.crash end
test_should_not_allow_idle()
click to toggle source
# File test/functional/state_machine_test.rb, line 885 def test_should_not_allow_idle assert !@car.idle end
test_should_not_allow_park()
click to toggle source
# File test/functional/state_machine_test.rb, line 876 def test_should_not_allow_park assert !@car.park end
test_should_not_allow_repair()
click to toggle source
# File test/functional/state_machine_test.rb, line 901 def test_should_not_allow_repair assert !@car.repair end
test_should_not_allow_shift_down()
click to toggle source
# File test/functional/state_machine_test.rb, line 893 def test_should_not_allow_shift_down assert !@car.shift_down end
test_should_not_allow_shift_up()
click to toggle source
# File test/functional/state_machine_test.rb, line 889 def test_should_not_allow_shift_up assert !@car.shift_up end
test_should_not_have_the_seatbelt_on()
click to toggle source
# File test/functional/state_machine_test.rb, line 872 def test_should_not_have_the_seatbelt_on assert !@car.seatbelt_on end