File: machine_by_default_test.rb

package info (click to toggle)
ruby-state-machines-activerecord 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: ruby: 1,922; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_use_transactions
    assert_equal true, @machine.use_transactions
  end
end