Sha256: a3fb25a1c4b4941529c7cfcdf669ac67f58fa7ee6f5168663ac848da3164630e

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

require 'simplecov'
SimpleCov.start do
  require 'simplecov-badge'
  SimpleCov::Formatter::BadgeFormatter.strength_foreground = true
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::BadgeFormatter,
  ]
end

require './lib/regexp-examples.rb'
require 'pry'

RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4. It makes the `description`
    # and `failure_message` of custom matchers include text for helper methods
    # defined using `chain`, e.g.:
    # be_bigger_than(2).and_smaller_than(4).description
    #   # => "be bigger than 2 and smaller than 4"
    # ...rather than:
    #   # => "be bigger than 2"
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  # rspec-mocks config goes here. You can use an alternate test double
  # library (such as bogus or mocha) by changing the `mock_with` option here.
  config.mock_with :rspec do |mocks|
    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object. This is generally recommended, and will default to
    # `true` in RSpec 4.
    mocks.verify_partial_doubles = true
  end

  config.disable_monkey_patching!
  config.warnings = true

  # Print the 10 slowest examples and example groups at the
  # end of the spec run, to help surface which specs are running
  # particularly slow.
  #config.profile_examples = 10
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
regexp-examples-0.3.1 spec/spec_helper.rb
regexp-examples-0.3.0 spec/spec_helper.rb
regexp-examples-0.2.4 spec/spec_helper.rb
regexp-examples-0.2.3 spec/spec_helper.rb
regexp-examples-0.2.2 spec/spec_helper.rb
regexp-examples-0.2.1 spec/spec_helper.rb