class VehicleSecondGearTest

Public Instance Methods

setup() click to toggle source
# File test/functional/state_machine_test.rb, line 570
def setup
  @vehicle = Vehicle.new
  @vehicle.ignite
  2.times {@vehicle.shift_up}
end
test_should_allow_crash() click to toggle source
# File test/functional/state_machine_test.rb, line 600
def test_should_allow_crash
  assert @vehicle.crash
end
test_should_allow_shift_down() click to toggle source
# File test/functional/state_machine_test.rb, line 596
def test_should_allow_shift_down
  assert @vehicle.shift_down
end
test_should_allow_shift_up() click to toggle source
# File test/functional/state_machine_test.rb, line 592
def test_should_allow_shift_up
  assert @vehicle.shift_up
end
test_should_be_in_second_gear_state() click to toggle source
# File test/functional/state_machine_test.rb, line 576
def test_should_be_in_second_gear_state
  assert_equal 'second_gear', @vehicle.state
end
test_should_be_second_gear() click to toggle source
# File test/functional/state_machine_test.rb, line 580
def test_should_be_second_gear
  assert @vehicle.second_gear?
end
test_should_not_allow_idle() click to toggle source
# File test/functional/state_machine_test.rb, line 588
def test_should_not_allow_idle
  assert !@vehicle.idle
end
test_should_not_allow_park() click to toggle source
# File test/functional/state_machine_test.rb, line 584
def test_should_not_allow_park
  assert !@vehicle.park
end
test_should_not_allow_repair() click to toggle source
# File test/functional/state_machine_test.rb, line 604
def test_should_not_allow_repair
  assert !@vehicle.repair
end