vendor/bundle/ruby/1.8/gems/ZenTest-4.6.2/lib/autotest.rb
def add_mapping regexp, prepend = false, &proc
    if prepend then
      @test_mappings.unshift [regexp, proc]
    else
      @test_mappings.push [regexp, proc]
    end
    nil
  end
##
# Adds a file mapping, optionally prepending the mapping to the
# front of the list if +prepend+ is true. +regexp+ should match a
# file path in the codebase. +proc+ is passed a matched filename and
# Regexp.last_match. +proc+ should return an array of tests to run.
#
# For example, if test_helper.rb is modified, rerun all tests:
#
#   at.add_mapping(/test_helper.rb/) do |f, _|
#     at.files_matching(/^test.*rb$/)
#   end
Adds a file mapping, optionally prepending the mapping to the
front of the list if +prepend+ is true. +regexp+ should match a
file path in the codebase. +proc+ is passed a matched filename and
Regexp.last_match. +proc+ should return an array of tests to run.

For example, if test_helper.rb is modified, rerun all tests.


Adds a file mapping optionally prepending the mapping to the front of the list if + prepend + is true . + regexp + should match a file path in the codebase . + proc + is passed a matched filename and Regexp . last_match . + proc + should return an array of tests to run . For example if test_helper . rb is modified rerun all tests .
def add_mapping regexp, prepend = false, &proc
    if prepend then
      @test_mappings.unshift [regexp, proc]
    else
      @test_mappings.push [regexp, proc]
    end
    nil
  end
def add_mapping regexp , prepend = false , & proc if prepend then @test_mappings . unshift [ regexp , proc ] else @test_mappings . push [ regexp , proc ] end nil end
Adds a file mapping, optionally prepending the mapping to the
front of the list if +prepend+ is true.
Adds a file mapping optionally prepending the mapping to the front of the list if + prepend + is true .
regexp
prepend
proc