Sha256: 78c5f47ae2d30d585b58fae1e606cd9035fc5742d7522752db5d5535f4ffc103

Contents?: true

Size: 717 Bytes

Versions: 13

Compression:

Stored size: 717 Bytes

Contents

module Shoulda
  module Matchers
    module Integrations
      module TestFrameworks
        # @private
        class Minitest5
          Integrations.register_test_framework(self, :minitest_5)
          Integrations.register_test_framework(self, :minitest)

          def validate!
          end

          def include(*modules, **_options)
            test_case_class.class_eval do
              include(*modules)
              extend(*modules)
            end
          end

          def n_unit?
            true
          end

          def present?
            true
          end

          private

          def test_case_class
            Minitest::Test
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shoulda-matchers-6.4.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/integrations/test_frameworks/minitest_5.rb