spec/spec_helper.rb in fluentd-ui-1.0.0.alpha.3 vs spec/spec_helper.rb in fluentd-ui-1.0.0.beta.1
- old
+ new
@@ -22,10 +22,11 @@
end
Capybara.javascript_driver = :selenium
require 'capybara-screenshot/rspec'
require "fluent/load"
+require "fluent/plugin/buf_file"
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
Dir[Rails.root.join("spec/*/shared_examples/**/*.rb")].each { |f| require f }
@@ -70,9 +71,13 @@
unless File.directory?("/opt/td-agent")
# including td-agent specific tests, so some tests will fail if the system has no td-agent
warn "\n\nSkipping td-agent specific tests (system has no td-agent)\n\n"
config.filter_run_excluding :td_agent_required => true
+ end
+
+ config.before do
+ $log = DummyLogger.logger
end
config.after(:suite) do
FileUtils.rm_rf FluentdUI.data_dir
end