rubygem/lib/zeus/m.rb
def tests
        @tests ||= begin
          # With each suite and array of tests,
          # and with each test method present in this test file,
          # shove a new test method into this collection.
          suites.inject(TestCollection.new) do |collection, (suite_class, test_methods)|
            test_methods.each do |test_method|
              find_locations = (@files.size == 1 && @line)
              collection << TestMethod.create(suite_class, test_method, find_locations)
            end
            collection
          end
        end
      end
# Shoves tests together in our custom container and collection classes.
# Memoize it since it's unnecessary to do this more than one for a given file.
Shoves tests together in our custom container and collection classes.
Memoize it since it's unnecessary to do this more than one for a given file.
Shoves tests together in our custom container and collection classes . Memoize it since it ' s unnecessary to do this more than one for a given file .
def tests
        @tests ||= begin
          suites.inject(TestCollection.new) do |collection, (suite_class, test_methods)|
            test_methods.each do |test_method|
              find_locations = (@files.size == 1 && @line)
              collection << TestMethod.create(suite_class, test_method, find_locations)
            end
            collection
          end
        end
      end
def tests @tests ||= begin suites . inject ( TestCollection . new ) do | collection , ( suite_class , test_methods ) | test_methods . each do | test_method | find_locations = ( @files . size == 1 && @line ) collection << TestMethod . create ( suite_class , test_method , find_locations ) end collection end end end
Shoves tests together in our custom container and collection classes.
Shoves tests together in our custom container and collection classes .
# With each suite and array of tests, # and with each test method present in this test file, # shove a new test method into this collection.