Sha256: 151da8b90883099648a15ddde8aa13d1894f8e6df9902b994147302591e297ef
Contents?: true
Size: 622 Bytes
Versions: 5
Compression:
Stored size: 622 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' $LOAD_PATH.unshift(File.join(__dir__, '..', 'lib')) $LOAD_PATH.unshift(__dir__) require 'rails' require 'active_record' require 'database_rewinder' require 'fake_app' require 'test/unit/rails/test_help' migrated = ActiveRecord::Base.connection.respond_to?(:data_source_exists?) ? ActiveRecord::Base.connection.data_source_exists?('foos') : ActiveRecord::Base.connection.table_exists?('foos') CreateAllTables.up unless migrated module DeleteAllTables def teardown super [Foo, Bar, Baz, Quu].each {|m| m.delete_all } end end ActiveSupport::TestCase.send :prepend, DeleteAllTables
Version data entries
5 entries across 5 versions & 1 rubygems