Sha256: c02ca29663c1d4b7821616ae3eca4000384690f654c580cd59b099b17deb5e7d

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require 'rspec/expectations'

Minitest::Test.class_eval do
  include ::RSpec::Matchers

  def expect(*a, &b)
    assert(true) # so each expectation gets counted in minitest's assertion stats
    super
  end
end

module RSpec::Expectations
  remove_const :ExpectationNotMetError
  ExpectationNotMetError = ::Minitest::Assertion
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-expectations-3.0.0 lib/rspec/expectations/minitest_integration.rb
rspec-expectations-3.0.0.rc1 lib/rspec/expectations/minitest_integration.rb
rspec-expectations-3.0.0.beta2 lib/rspec/expectations/minitest_integration.rb