Sha256: d050aa82d4742f1bb65394f8a82a8dd4cbd82ccbe0f93bd261ae58466e391364

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

if ENV["CI"] || ENV["FAIL_ON_OUTPUT"]
  RSpec.configure do |config|
    config.around do |example|
      output = capture_output { example.run }
      fail "Use `silence { }` to avoid printing to STDOUT/STDERR\n#{output}" unless output.empty?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flipper-1.3.2 spec/support/fail_on_output.rb
flipper-1.3.1 spec/support/fail_on_output.rb