Sha256: e77e549126c1aeb6146657e15986217fc4bd64e7fa3dca3da8b00969acb3de46
Contents?: true
Size: 800 Bytes
Versions: 10
Compression:
Stored size: 800 Bytes
Contents
require 'bundler/setup' Bundler.setup # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__) ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migrate", __FILE__)] require "rails/test_help" # Filter out Minitest backtrace while allowing backtrace from other libraries # to be shown. # Minitest.backtrace_filter = Minitest::BacktraceFilter.new ActiveRecord::Base.configurations = YAML.load_file(File.join(File.dirname(__FILE__), 'config/database.yml')) ActiveRecord::Base.establish_connection(:test) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end
Version data entries
10 entries across 10 versions & 1 rubygems