spec/spec_helper.rb in logstasher-0.5.3 vs spec/spec_helper.rb in logstasher-0.6.0
- old
+ new
@@ -21,10 +21,12 @@
# This will require me all the gems automatically for the groups. If I do only .setup then I will have to require gems
# manually. Note that you have still have to require some gems if they are part of bigger gem like ActiveRecord which is
# part of Rails. You can say :require => false in gemfile to always use explicit requiring
Bundler.require(:default, :test)
+Dir[File.join("./spec/support/**/*.rb")].each { |f| require f }
+
# Set Rails environment as test
ENV['RAILS_ENV'] = 'test'
require 'action_pack'
require 'action_controller'
@@ -38,13 +40,13 @@
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/hash/slice'
require 'active_support/core_ext/string'
require 'active_support/core_ext/time/zones'
require 'abstract_controller/base'
+require 'action_mailer'
require 'logger'
require 'logstash-event'
RSpec.configure do |config|
- config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus
end