Sha256: 2933564afb5e198e38c12953b0f787e985a5877349670a2d9458cccff0c83754
Contents?: true
Size: 962 Bytes
Versions: 4
Compression:
Stored size: 962 Bytes
Contents
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' if RUBY_ENGINE == 'rbx' require "codeclimate-test-reporter" CodeClimate::TestReporter.start end require Pathname(__FILE__).dirname.join("dummy/config/environment") require 'rspec/rails' require 'database_cleaner' require 'capybara/rails' require 'generator_spec' begin require 'byebug' rescue LoadError end Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.order = "random" config.before(:suite) do conn = ROM.env.gateways[:default].connection DatabaseCleaner[:sequel, connection: conn].strategy = :transaction DatabaseCleaner[:sequel, connection: conn].clean_with(:truncation) end config.around(:each) do |example| conn = ROM.env.gateways[:default].connection DatabaseCleaner[:sequel, connection: conn].cleaning { example.run } end end def rom ROM.env end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rom-rails-0.5.0 | spec/spec_helper.rb |
rom-rails-0.5.0.rc1 | spec/spec_helper.rb |
rom-rails-0.5.0.beta1 | spec/spec_helper.rb |
rom-rails-0.4.0 | spec/spec_helper.rb |