lib/m/test_collection.rb
# Slice out tests that may be within the given line.
# Returns a new TestCollection with the results.
Slice out tests that may be within the given line.
Returns a new TestCollection with the results.
Slice out tests that may be within the given line . Returns a new TestCollection with the results .
def within(lines)
      collection = select do |test|
        lines.none? || lines.any? { |line| (test.start_line..test.end_line).include?(line) }
      end
      self.class.new(collection)
    end
def within ( lines ) collection = select do | test | lines . none? || lines . any? { | line | ( test . start_line .. test . end_line ) . include? ( line ) } end self . class . new ( collection ) end
Slice out tests that may be within the given line.
Slice out tests that may be within the given line .
# Into a new collection, filter only the tests that...
lines