Sha256: 62ce525ca75c8c53515d1c9ba9431a0d33d9335bfee1bf62bd2e6dba44562c61

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

require "assert/assertions"

module Assert; end
class Assert::Context; end
module Assert::Context::MethodMissing
  def method_missing(method, *args, &block)
    if Assert::Assertions::IGNORED_ASSERTION_HELPERS.include?(method.to_sym)
      ignore "The assertion `#{method}` is not supported."\
             " Please use another assertion or the basic `assert`."
    else
      super
    end
  end

  def respond_to_missing?(method, *)
    Assert::Assertions::IGNORED_ASSERTION_HELPERS.include?(method.to_sym) ||
    super
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
assert-2.19.0 lib/assert/context/method_missing.rb
assert-2.18.4 lib/assert/context/method_missing.rb
assert-2.18.3 lib/assert/context/method_missing.rb