diff --git a/bat/spec/spec_helper.rb b/bat/spec/spec_helper.rb index e16eeef5fc7..ff2bfbb7d06 100644 --- a/bat/spec/spec_helper.rb +++ b/bat/spec/spec_helper.rb @@ -1,9 +1,7 @@ require 'rspec' - +require 'rspec/its' require 'fakefs/spec_helpers' SPEC_ROOT = File.expand_path(File.dirname(__FILE__)) -Dir.glob(File.expand_path('support/**/*.rb', File.dirname(__FILE__))).each do |support| - require support -end +Dir.glob(File.expand_path('support/**/*.rb', SPEC_ROOT)).each { |f| require(f) }