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