Sha256: d37753f9185f3fd7293afcd7fa80a8f23ebf8acfffcc1d6cb306fb6442e37d50
Contents?: true
Size: 680 Bytes
Versions: 5
Compression:
Stored size: 680 Bytes
Contents
require_relative 'factories/activity_factory' require_relative 'support/mutations_matchers' require 'rspec' require 'database_cleaner' require 'yaml' require 'restpack_activity_service' 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
5 entries across 5 versions & 1 rubygems