Sha256: 2526d1638d13de4cd4ab85140e2b72aa0a8f3a228cd144ab5854431901aeff68

Contents?: true

Size: 398 Bytes

Versions: 14

Compression:

Stored size: 398 Bytes

Contents

require 'test/unit'
require 'active_record'

require 'transitions'
require 'active_model/transitions'

require 'mocha'
require 'random_data'

def db_defaults!
  ActiveRecord::Base.establish_connection(:adapter  => 'sqlite3', :database => ':memory:')
  ActiveRecord::Migration.verbose = false
end

def set_up_db(*migrations)
  db_defaults!
  migrations.each { |klass| klass.send :migrate, :up }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
transitions-0.2.0 test/helper.rb
transitions-0.1.13 test/helper.rb
transitions-0.1.12 test/helper.rb
transitions-0.1.11 test/helper.rb
transitions-0.1.10 test/helper.rb
transitions-0.1.9 test/helper.rb
transitions-0.1.8 test/helper.rb
transitions-0.1.7 test/helper.rb
transitions-0.1.6 test/helper.rb
transitions-0.1.5 test/helper.rb
transitions-0.1.4 test/helper.rb
transitions-0.1.3 test/helper.rb
transitions-0.1.2 test/helper.rb
transitions-0.1.1 test/helper.rb