Sha256: 547c57b9c329738c8d9db2474ee46aa4168f69c2ccb06b70c7bc97ba5e42d017

Contents?: true

Size: 577 Bytes

Versions: 6

Compression:

Stored size: 577 Bytes

Contents

# frozen_string_literal: true

require "assert/version"

require "assert/config"
require "assert/context"
require "assert/runner"
require "assert/stub"
require "assert/suite"
require "assert/utils"
require "assert/view"

module Assert
  def self.config
    @config ||= Config.new
  end

  def self.configure
    yield config if block_given?
  end

  def self.view
    config.view
  end

  def self.suite
    config.suite
  end

  def self.runner
    config.runner
  end

  # unstub all stubs automatically (see stub.rb)
  class Context
    teardown{ Assert.unstub! }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
assert-2.19.8 lib/assert.rb
assert-2.19.7 lib/assert.rb
assert-2.19.6 lib/assert.rb
assert-2.19.5 lib/assert.rb
assert-2.19.4 lib/assert.rb
assert-2.19.3 lib/assert.rb