Sha256: f4a5349a4237e1dedfd629489ea33e360a69e44225dea0efa627174ba7950aa6

Contents?: true

Size: 527 Bytes

Versions: 170

Compression:

Stored size: 527 Bytes

Contents

require 'test/unit/collector'

module Test
  module Unit
    module Collector
      class Descendant
        include Collector

        NAME = 'collected from the subclasses of TestCase'

        def collect(name=NAME)
          suite = TestSuite.new(name)
          sub_suites = []
          TestCase::DESCENDANTS.each do |descendant_test_case|
            add_suite(sub_suites, descendant_test_case.suite)
          end
          sort(sub_suites).each {|s| suite << s}
          suite
        end
      end
    end
  end
end

Version data entries

170 entries across 154 versions & 14 rubygems

Version Path
rhodes-7.6.0 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-7.5.1 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-7.4.1 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-7.1.17 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-6.2.0 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-6.0.11 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.18 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.17 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.15 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.0.22 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.2 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.0.7 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.0.3 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
rhodes-5.5.0 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
tauplatform-1.0.3 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
tauplatform-1.0.2 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
tauplatform-1.0.1 spec/framework_spec/extensions/test-libs/test/unit/collector/descendant.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/descendant.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/test-unit-2.4.8/lib/test/unit/collector/descendant.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/test-unit-2.4.8/lib/test/unit/collector/descendant.rb