Methods
T
Instance Public methods
test_test_files()
# File railties/test/test_info_test.rb, line 6
def test_test_files
  info = new_test_info ['test']
  assert_predicate info.files, :empty?
  assert_nil info.opts
  assert_equal ['test'], info.tasks
end
test_with_file()
# File railties/test/test_info_test.rb, line 13
def test_with_file
  info = new_test_info ['test', __FILE__]
  assert_equal [__FILE__], info.files
  assert_nil info.opts
  assert_equal ['test'], info.tasks
end
test_with_model_path()
# File railties/test/test_info_test.rb, line 39
def test_with_model_path
  info = new_test_info ['test', 'app/models/foo.rb', '/foo/']

  def info.test_file?(file)
    file == "test/models/foo_test.rb" || super
  end

  assert_equal ['test/models/foo_test.rb'], info.files
  assert_equal '-n /foo/', info.opts
  assert_equal ['test'], info.tasks
end
test_with_model_shorthand()
# File railties/test/test_info_test.rb, line 27
def test_with_model_shorthand
  info = new_test_info ['test', 'models/foo', '/foo/']

  def info.test_file?(file)
    file == "test/models/foo_test.rb" || super
  end

  assert_equal ['test/models/foo_test.rb'], info.files
  assert_equal '-n /foo/', info.opts
  assert_equal ['test'], info.tasks
end
test_with_opts()
# File railties/test/test_info_test.rb, line 20
def test_with_opts
  info = new_test_info ['test', __FILE__, '/foo/']
  assert_equal [__FILE__], info.files
  assert_equal '-n /foo/', info.opts
  assert_equal ['test'], info.tasks
end