Sha256: 58622e2a4d5de9e766944befd6b2ec50c0764ada0932bdbeec5d210a683a9707

Contents?: true

Size: 774 Bytes

Versions: 14

Compression:

Stored size: 774 Bytes

Contents

require_relative '../test_helper'
require_relative '../files/models/car'

class CarBackingUpTest < MiniTest::Test
  def setup
    @car = Car.new
    @car.reverse
  end

  def test_should_be_in_backing_up_state
    assert_equal 'backing_up', @car.state
  end

  def test_should_allow_park
    assert @car.park
  end

  def test_should_not_allow_ignite
    refute @car.ignite
  end

  def test_should_allow_idle
    assert @car.idle
  end

  def test_should_allow_shift_up
    assert @car.shift_up
  end

  def test_should_not_allow_shift_down
    refute @car.shift_down
  end

  def test_should_not_allow_crash
    refute @car.crash
  end

  def test_should_not_allow_repair
    refute @car.repair
  end

  def test_should_not_allow_reverse
    refute @car.reverse
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
state_machines-0.5.0 test/functional/car_backing_up_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-0.2.2/test/functional/car_backing_up_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-0.2.2/test/functional/car_backing_up_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-0.2.2/test/functional/car_backing_up_test.rb
state_machines-0.4.0 test/functional/car_backing_up_test.rb
state_machines-0.3.0 test/functional/car_backing_up_test.rb
state_machines-0.2.2 test/functional/car_backing_up_test.rb
state_machines-0.2.1 test/functional/car_backing_up_test.rb
state_machines-0.2.0 test/functional/car_backing_up_test.rb
state_machines-0.1.4 test/functional/car_backing_up_test.rb
state_machines-0.1.3 test/functional/car_backing_up_test.rb
state_machines-0.1.2 test/functional/car_backing_up_test.rb
state_machines-0.1.1 test/functional/car_backing_up_test.rb
state_machines-0.1.0 test/functional/car_backing_up_test.rb