Sha256: 95c79a98c4883bd6cdfc8ce13204245520fab6663fecae6eb96122142c79686e

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require "logger"
require "active_record"
require "hario"
require "models"

ActiveRecord::Base.configurations = YAML.load_file(File.join(File.dirname(__FILE__), 'database.yml'))
ActiveRecord::Base.establish_connection(ENV['DB'] || :sqlite3)
ActiveRecord::Migration.suppress_messages do
  load(File.join(File.dirname(__FILE__), "schema.rb"))
end

ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), "debug.log"))

require "active_support"
require "database_rewinder"

DatabaseRewinder[ENV['DB'] || 'sqlite3']
DatabaseRewinder.clean_all
require "fixtures"
require "hario_test_class"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hario-0.3.2 test/test_helper.rb
hario-0.3.1 test/test_helper.rb
hario-0.3.0 test/test_helper.rb