Sha256: 22d8da9d55d8d96165385d167a04bf397fe081e8cc620a8bc8c32a4fa67bee62
Contents?: true
Size: 710 Bytes
Versions: 3
Compression:
Stored size: 710 Bytes
Contents
require 'bundler/setup' require 'nagios_output' RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = '.rspec_status' # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.expect_with :rspec do |c| c.syntax = :expect end original_stderr = $stderr original_stdout = $stdout config.before(:all) do # Redirect stderr and stdout $stderr = File.open(File::NULL, 'w') $stdout = File.open(File::NULL, 'w') end config.after(:all) do $stderr = original_stderr $stdout = original_stdout end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nagios_output-2.0.1 | spec/spec_helper.rb |
nagios_output-2.0.0 | spec/spec_helper.rb |
nagios_output-1.0.0 | spec/spec_helper.rb |