Sha256: 1bb5dfd3f977dba59ea852837da678bdb53f3ca382b3656251d91b3603f80d20

Contents?: true

Size: 323 Bytes

Versions: 3

Compression:

Stored size: 323 Bytes

Contents

# frozen_string_literal: true
# Minitest requires you provide an assertions ivar for the context
# it is running within. We need this so that ActiveModel::Lint tests
# can successfully be run.
module MinitestAssertion
  def assertions
    @assertions ||= 0
  end

  def assertions=(value)
    @assertions = value
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rspec-activemodel-mocks-1.2.1 spec/support/minitest_support.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-activemodel-mocks-1.2.0/spec/support/minitest_support.rb
rspec-activemodel-mocks-1.2.0 spec/support/minitest_support.rb