File: load_environment.rb

package info (click to toggle)
ruby-shoulda-matchers 7.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: ruby: 34,046; sh: 280; makefile: 9
file content (12 lines) | stat: -rw-r--r-- 263 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../tests/current_bundle'
require_relative 'rails_application'

Tests::CurrentBundle.instance.assert_appraisal!

$test_app = UnitTests::RailsApplication.new
$test_app.create
$test_app.load

require 'active_record/base'

ENV['RAILS_ENV'] = 'test'