Sha256: 30d95b34b30c94a1fa3a21dad6c2bdd17bca55906bde084a08582ca57e2b6006
Contents?: true
Size: 718 Bytes
Versions: 9
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true require 'minitest/spec' require_relative './asserters/assert_requires_static_call_param.rb' module MiniTest # Adding custom assertions to make specs easier to read module Assertions def assert_requires_static_call_param(klass, full_params, param_key, message = nil) AssertRequiresStaticCallParam.new(klass, full_params, param_key, message) .call(method(:assert)) end end # Make it available to MiniTest::Spec module Expectations infect_an_assertion :assert_requires_static_call_param, :must_require_static_call_param, :reverse end end # module MiniTest
Version data entries
9 entries across 9 versions & 1 rubygems