Sha256: 182660c474a6879e1a65890c0f1815bf378d9f595e6b942e8c32e5ee36cb23c8

Contents?: true

Size: 659 Bytes

Versions: 13

Compression:

Stored size: 659 Bytes

Contents

module Shoulda
  module Matchers
    module Integrations
      module TestFrameworks
        # @private
        class TestUnit
          Integrations.register_test_framework(self, :test_unit)

          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
            ::Test::Unit::TestCase
          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/test_unit.rb
shoulda-matchers-6.3.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-6.3.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-6.2.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-6.1.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-6.0.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-5.3.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-5.2.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-5.1.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-5.0.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-5.0.0.rc1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.5.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.5.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb