We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From https://github.com/RestPack/restpack_core_service/blob/master/spec/spec_helper.rb
Most (all?) of this can be extracted to https://github.com/RestPack/restpack_service/blob/master/lib/restpack_service/support/spec_helper.rb
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From https://github.com/RestPack/restpack_core_service/blob/master/spec/spec_helper.rb
Most (all?) of this can be extracted to https://github.com/RestPack/restpack_service/blob/master/lib/restpack_service/support/spec_helper.rb
The text was updated successfully, but these errors were encountered: