Sha256: a22e135cf84026154ade924f8371356eb0e8d9e22fbb7d7121cda3c8e008efa8

Contents?: true

Size: 429 Bytes

Versions: 14

Compression:

Stored size: 429 Bytes

Contents

require_relative '../test_helper'
require_relative '../files/models/vehicle'

class VehicleRepairedTest < MiniTest::Test
  def setup
    @vehicle = Vehicle.new
    @vehicle.ignite
    @vehicle.shift_up
    @vehicle.crash
    @vehicle.repair
  end

  def test_should_be_in_parked_state
    assert_equal 'parked', @vehicle.state
  end

  def test_should_not_have_a_busy_auto_shop
    assert @vehicle.auto_shop.available?
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

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