Sha256: 5eb9a1ce1639ebd55e1ff2c77bd0995d2b3a2cdd94c2e56a0b3a2155609699a2
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
require 'restpack_service/support/spec_helper' require 'restpack_activity_service' require_relative 'factories/activity_factory' require 'coveralls' Coveralls.wear! config = YAML.load_file('./config/database.yml') ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'] || config['test']) migrations_path = File.dirname(__FILE__) + "/../db/migrate" migrator = ActiveRecord::Migrator.new(:up, migrations_path) migrator.migrate DatabaseCleaner.strategy = :transaction RSpec.configure do |config| config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
4 entries across 4 versions & 1 rubygems