We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b47291c commit 2a7079aCopy full SHA for 2a7079a
features/support/env.rb
@@ -23,8 +23,7 @@
23
24
require ENV['RAILS_ROOT'] + '/config/environment'
25
26
-# Setup autoloading of ActiveAdmin and the load path
27
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+# Setup autoloading of ActiveAdmin
28
autoload :ActiveAdmin, 'active_admin'
29
30
require 'cucumber/rails'
spec/spec_helper.rb
@@ -1,9 +1,6 @@
1
-$LOAD_PATH.unshift(File.dirname(__FILE__))
2
-$LOAD_PATH << File.expand_path('../support', __FILE__)
3
-
4
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
5
6
-require 'detect_rails_version'
+require File.expand_path('../support/detect_rails_version', __FILE__)
7
ENV['RAILS'] = detect_rails_version
8
9
require 'simplecov'
0 commit comments