Sha256: 352a091e1e5d9b7f14c63c74f0207323dd4b01b1bb13cbffa382adafe86a48b0

Contents?: true

Size: 574 Bytes

Versions: 19

Compression:

Stored size: 574 Bytes

Contents

require_relative 'test_helper'

class MachineByDefaultTest < BaseTestCase
  def setup
    @model = new_model
    @machine = StateMachines::Machine.new(@model, integration: :active_model)
  end

  def test_should_not_have_action
    assert_nil @machine.action
  end

  def test_should_use_transactions
    assert_equal true, @machine.use_transactions
  end

  def test_should_not_have_any_before_callbacks
    assert_equal 0, @machine.callbacks[:before].size
  end

  def test_should_not_have_any_after_callbacks
    assert_equal 0, @machine.callbacks[:after].size
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
state_machines-activemodel-0.9.0 test/machine_by_default_test.rb
state_machines-activemodel-0.8.0 test/machine_by_default_test.rb
state_machines-activemodel-0.7.1 test/machine_by_default_test.rb
state_machines-activemodel-0.7.0 test/machine_by_default_test.rb
state_machines-activemodel-0.6.0 test/machine_by_default_test.rb
state_machines-activemodel-0.5.1 test/machine_by_default_test.rb
state_machines-activemodel-0.5.0 test/machine_by_default_test.rb
state_machines-activemodel-0.4.1 test/machine_by_default_test.rb
state_machines-activemodel-0.4.0 test/machine_by_default_test.rb
state_machines-activemodel-0.4.0.pre test/machine_by_default_test.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_by_default_test.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_by_default_test.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-activemodel-0.1.2/test/machine_by_default_test.rb
state_machines-activemodel-0.3.0 test/machine_by_default_test.rb
state_machines-activemodel-0.2.0 test/machine_by_default_test.rb
state_machines-activemodel-0.1.2 test/machine_by_default_test.rb
state_machines-activemodel-0.1.1 test/machine_by_default_test.rb
state_machines-activemodel-0.1.0 test/machine_by_default_test.rb
state_machines-activemodel-0.0.3 test/machine_by_default_test.rb