class VehicleFirstGearTest

Public Instance Methods

setup() click to toggle source
# File test/functional/state_machine_test.rb, line 530
def setup
  @vehicle = Vehicle.new
  @vehicle.ignite
  @vehicle.shift_up
end
test_should_allow_crash() click to toggle source
# File test/functional/state_machine_test.rb, line 560
def test_should_allow_crash
  assert @vehicle.crash
end
test_should_allow_idle() click to toggle source
# File test/functional/state_machine_test.rb, line 548
def test_should_allow_idle
  assert @vehicle.idle
end
test_should_allow_park() click to toggle source
# File test/functional/state_machine_test.rb, line 544
def test_should_allow_park
  assert @vehicle.park
end
test_should_allow_shift_up() click to toggle source
# File test/functional/state_machine_test.rb, line 552
def test_should_allow_shift_up
  assert @vehicle.shift_up
end
test_should_be_first_gear() click to toggle source
# File test/functional/state_machine_test.rb, line 540
def test_should_be_first_gear
  assert @vehicle.first_gear?
end
test_should_be_in_first_gear_state() click to toggle source
# File test/functional/state_machine_test.rb, line 536
def test_should_be_in_first_gear_state
  assert_equal 'first_gear', @vehicle.state
end
test_should_not_allow_repair() click to toggle source
# File test/functional/state_machine_test.rb, line 564
def test_should_not_allow_repair
  assert !@vehicle.repair
end
test_should_not_allow_shift_down() click to toggle source
# File test/functional/state_machine_test.rb, line 556
def test_should_not_allow_shift_down
  assert !@vehicle.shift_down
end