spec/spec_helper.rb in audited-4.5.0 vs spec/spec_helper.rb in audited-4.6.0
- old
+ new
@@ -1,15 +1,15 @@
ENV['RAILS_ENV'] = 'test'
+require 'bundler'
if Bundler.definition.dependencies.map(&:name).include?('protected_attributes')
require 'protected_attributes'
end
require 'rails_app/config/environment'
require 'rspec/rails'
require 'audited'
require 'audited_spec_helpers'
require 'support/active_record/models'
-load "audited/sweeper.rb" # force to reload sweeper
SPEC_ROOT = Pathname.new(File.expand_path('../', __FILE__))
Dir[SPEC_ROOT.join('support/*.rb')].each{|f| require f }