Sha256: fcb33509c27c8085822600ee4a1eb03f8274eeb76f6512fa08f0b8efc657cd34
Contents?: true
Size: 778 Bytes
Versions: 14
Compression:
Stored size: 778 Bytes
Contents
require_relative '../test_helper' require_relative '../files/models/vehicle' class VehicleFirstGearTest < MiniTest::Test def setup @vehicle = Vehicle.new @vehicle.ignite @vehicle.shift_up end def test_should_be_in_first_gear_state assert_equal 'first_gear', @vehicle.state end def test_should_be_first_gear assert @vehicle.first_gear? end def test_should_allow_park assert @vehicle.park end def test_should_allow_idle assert @vehicle.idle end def test_should_allow_shift_up assert @vehicle.shift_up end def test_should_not_allow_shift_down refute @vehicle.shift_down end def test_should_allow_crash assert @vehicle.crash end def test_should_not_allow_repair refute @vehicle.repair end end
Version data entries
14 entries across 14 versions & 2 rubygems