Sha256: 72f21345567ec65a5529bed774fdec2afff8f328c65cbd4570629c69468e47ec

Contents?: true

Size: 708 Bytes

Versions: 2

Compression:

Stored size: 708 Bytes

Contents

require "simplecov"
require "coveralls"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
])
SimpleCov.start { add_filter "/spec/" }

require "pry"
require "merch_calendar"

RSpec.configure do |config|
  config.mock_with :rspec do |mocks_config|
    mocks_config.verify_doubled_constant_names = true
    mocks_config.verify_partial_doubles = true
  end

  config.around do |example|
    # Hide deprecation warnings within this gem from showing up in tests
    if Date.today < MerchCalendar::DEPRECATION_DATE
      Gem::Deprecate.skip_during do
        example.run
      end
    else
      example.run
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merch_calendar-1.0.1 spec/spec_helper.rb
merch_calendar-1.0.0 spec/spec_helper.rb