Sha256: ff47adfbadcd69dbab85692ea4b2010735474a91fbdd5f38ef8db93fc2050451
Contents?: true
Size: 615 Bytes
Versions: 2
Compression:
Stored size: 615 Bytes
Contents
require 'restpack_service/support/spec_helper' require 'restpack_core_service' config = YAML.load_file('./config/database.yml') ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'] || config['test']) migrations_path = File.dirname(__FILE__) + "/../db/migratore" migrator = ActiveRecord::Migrator.new(:up, migrations_path) migrator.migrate FactoryGirl.find_definitions DatabaseCleaner.strategy = :transaction RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
restpack_core_service-0.0.6 | spec/spec_helper.rb |
restpack_core_service-0.0.5 | spec/spec_helper.rb |