Sha256: 06168628e98329751efbd83a4b828a14c42758f217da25a69bb6dab4295c8401

Contents?: true

Size: 722 Bytes

Versions: 8

Compression:

Stored size: 722 Bytes

Contents

# frozen_string_literal: true

require 'minitest/spec'

require_relative './asserters/assert_requires_dry_struct_attribute'

module MiniTest
  # Adding custom assertions to make specs easier to read
  module Assertions
    def assert_requires_dry_struct_attribute(klass, full_params, param_key,
                                             message = nil)
      AssertRequiresDryStructAttribute.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_dry_struct_attribute,
                        :must_require_dry_struct_attribute, :reverse
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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