Skip to content

Commit 2a7079a

Browse files
author
David Rodríguez
committed
Remove unnecessay LOAD_PATH manipulations
1 parent b47291c commit 2a7079a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

features/support/env.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323

2424
require ENV['RAILS_ROOT'] + '/config/environment'
2525

26-
# Setup autoloading of ActiveAdmin and the load path
27-
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
26+
# Setup autoloading of ActiveAdmin
2827
autoload :ActiveAdmin, 'active_admin'
2928

3029
require 'cucumber/rails'

spec/spec_helper.rb

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
$LOAD_PATH.unshift(File.dirname(__FILE__))
2-
$LOAD_PATH << File.expand_path('../support', __FILE__)
3-
41
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
52

6-
require 'detect_rails_version'
3+
require File.expand_path('../support/detect_rails_version', __FILE__)
74
ENV['RAILS'] = detect_rails_version
85

96
require 'simplecov'

0 commit comments

Comments
 (0)