Sha256: 28c7c69528fbb0046e9039c498e6676e17bad558f03902e52c9fd42e5c7ac2d5

Contents?: true

Size: 658 Bytes

Versions: 15

Compression:

Stored size: 658 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

15 entries across 15 versions & 1 rubygems

Version Path
shoulda-matchers-4.4.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.4.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.3.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.2.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.1.2 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.1.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.1.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.0.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.1.3 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-4.0.0.rc1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.1.2 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.1.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.1.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.0.1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb
shoulda-matchers-3.0.0 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb