Sha256: 1784344c6be24d3a7363f924a9d4e9d20b165d0a78f00656d6c356f05da52105

Contents?: true

Size: 635 Bytes

Versions: 7

Compression:

Stored size: 635 Bytes

Contents

require 'rspec/support/spec/stderr_splitter'

warning_preventer = $stderr = RSpec::Support::StdErrSplitter.new($stderr)

RSpec.configure do |c|
  c.include RSpecHelpers
  c.include RSpec::Support::WithIsolatedStdErr
  c.include RSpec::Support::FormattingSupport

  unless defined?(Debugger) # debugger causes warnings when used
    c.before do
      warning_preventer.reset!
    end

    c.after do |example|
      warning_preventer.verify_example!(example)
    end
  end

  if c.files_to_run.one?
    c.full_backtrace = true
    c.default_formatter = 'doc'
  end

  c.filter_run :focus
  c.run_all_when_everything_filtered = true
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
opal-rspec-0.6.2 spec/rspec/support/spec_helper.rb
opal-rspec-0.6.1 spec/rspec/support/spec_helper.rb
opal-rspec-0.6.0 spec/rspec/support/spec_helper.rb
opal-rspec-0.6.0.beta1 spec/rspec/support/spec_helper.rb
opal-connect-rspec-0.5.0 spec/rspec/support/spec_helper.rb
opal-rspec-0.5.0 spec/rspec/support/spec_helper.rb
opal-rspec-0.5.0.beta3 spec/rspec/support/spec_helper.rb