spec/spec_helper.rb in danger-changelog-0.7.0 vs spec/spec_helper.rb in danger-changelog-0.7.1
- old
+ new
@@ -1,9 +1,9 @@
require 'pathname'
ROOT = Pathname.new(File.expand_path('..', __dir__))
-$LOAD_PATH.unshift((ROOT + 'lib').to_s)
-$LOAD_PATH.unshift((ROOT + 'spec').to_s)
+$LOAD_PATH.unshift("#{ROOT}lib".to_s)
+$LOAD_PATH.unshift("#{ROOT}spec".to_s)
require 'bundler/setup'
require 'pry'
require 'rspec'
@@ -40,8 +40,8 @@
Danger::Dangerfile.new(env, testing_ui)
end
require 'active_support'
-Dir[File.join(File.dirname(__FILE__), 'support', '**/*.rb')].each do |file|
+Dir[File.join(File.dirname(__FILE__), 'support', '**/*.rb')].sort.each do |file|
require file
end