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

Version Path
prolog_minitest_matchers-0.5.4 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.5.3 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.5.2 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.5.1 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.5.0 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.4.0 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.3.1 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.3.0 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb
prolog_minitest_matchers-0.2.0 lib/prolog_minitest_matchers/matchers/requires_static_call_param.rb