Sha256: 71c400a185dba90a60456340d4e3844f2650476933621b8efc996bd589adf2aa

Contents?: true

Size: 759 Bytes

Versions: 1

Compression:

Stored size: 759 Bytes

Contents

begin
  require 'simplecov'
  SimpleCov.start
rescue LoadError
end

require 'wisper'

RSpec.configure do |config|
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
  config.after(:each) { Wisper::GlobalListeners.clear }

  # Support both Rspec2 should and Rspec3 expect syntax
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  config.mock_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end

# returns an anonymous wispered class
def publisher_class
  Class.new { include Wisper::Publisher }
end

# prevents deprecation warning showing up in spec output
def silence_warnings
  original_verbosity = $VERBOSE
  $VERBOSE = nil
  yield
  $VERBOSE = original_verbosity
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wisper-1.3.0 spec/spec_helper.rb