Sha256: 0609365d2bb17f84e64405b5d23641430a2ef4495f553960433a3955596bedf4

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

require_relative 'test_helper'

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

  def test_should_use_save_as_action
    assert_equal :save, @machine.action
  end

  def test_should_not_use_transactions
    assert_equal false, @machine.use_transactions
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
state_machines-mongoid-0.2.0 test/machine_by_default_test.rb
state_machines-mongoid-0.1.1 test/machine_by_default_test.rb
state_machines-mongoid-0.1.0 test/machine_by_default_test.rb