Sha256: 81bcb5da62b9fbd04350e40b81e21069949bd638a34735428a14c74a955db56e

Contents?: true

Size: 915 Bytes

Versions: 17

Compression:

Stored size: 915 Bytes

Contents

require "rspec/core"
require "rspec/matchers"
require "rspec/expectations"
require "spy"
require "pry"
require "pry-nav"

RSpec::Matchers.define :include_method do |expected|
  match do |actual|
    actual.map { |m| m.to_s }.include?(expected.to_s)
  end
end

RSpec.configure do |config|
  config.color_enabled = true
  config.order = :random
  config.run_all_when_everything_filtered = true
  config.treat_symbols_as_metadata_keys_with_true_values = true
  config.filter_run_including :focus
  config.filter_run_excluding :broken => true
  config.mock_with :absolutely_nothing

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  old_verbose = nil
  config.before(:each, :silence_warnings) do
    old_verbose = $VERBOSE
    $VERBOSE = nil
  end

  config.after(:each, :silence_warnings) do
    $VERBOSE = old_verbose
  end

  config.after(:each) do
    Spy.teardown
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
spy-1.0.3 spec/spec_helper.rb
spy-1.0.2 spec/spec_helper.rb
spy-1.0.1 spec/spec_helper.rb
spy-1.0.0 spec/spec_helper.rb
spy-0.4.5 spec/spec_helper.rb
spy-0.4.3 spec/spec_helper.rb
spy-0.4.2 spec/spec_helper.rb
spy-0.4.1 spec/spec_helper.rb
spy-0.4.0 spec/spec_helper.rb
spy-0.3.1 spec/spec_helper.rb
spy-0.3.0 spec/spec_helper.rb
spy-0.2.5 spec/spec_helper.rb
spy-0.2.4 spec/spec_helper.rb
spy-0.2.3 spec/spec_helper.rb
spy-0.2.2 spec/spec_helper.rb
spy-0.2.1 spec/spec_helper.rb
spy-0.1.0 spec/spec_helper.rb