class ActiveRecordTest::MachineUnmigratedTest

Public Instance Methods

setup() click to toggle source
# File test/unit/integrations/active_record_test.rb, line 113
def setup
  @model = new_model(false)
  
  # Drop the table so that it definitely doesn't exist
  @model.connection.drop_table(:foo) if @model.table_exists?
end
test_should_allow_machine_creation() click to toggle source
# File test/unit/integrations/active_record_test.rb, line 120
def test_should_allow_machine_creation
  assert_nothing_raised { StateMachine::Machine.new(@model) }
end