Sha256: b4a29503e8e39b444de0ccb2095945d40c7931748d50f482674aeac154478e30

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 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)
            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

1 entries across 1 versions & 1 rubygems

Version Path
shoulda-matchers-3.0.0.rc1 lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb