Sha256: 2658855137cd18d858f4c13757ca0a9b70fa05e92ea6c1a2d0b00f182465bc8b

Contents?: true

Size: 676 Bytes

Versions: 1

Compression:

Stored size: 676 Bytes

Contents

# encoding: utf-8

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"
require 'minitest/mock'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:'

silence_stream(STDOUT) do
  ActiveRecord::Migrator.migrate File.expand_path('../../db/migrate/', __FILE__)
end

#def drop_all_tables
#  ActiveRecord::Base.connection.tables.each do |table|
#    ActiveRecord::Base.connection.drop_table(table)
#  end
#end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action_smser-3.0.0 test/test_helper.rb