Sha256: 5dabc47ba23448145636cda0c4f8cf05aacfb317da454566fab7b023ac119b8d

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

begin
  require 'simplecov'
  SimpleCov.start
rescue LoadError
end

require 'wisper'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.run_all_when_everything_filtered = true
  config.filter_run :focus
  config.order = 'random'
  config.after(:each) { Wisper::GlobalListeners.clear }
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.2.1 spec/spec_helper.rb