Rake recent should clone db structure like test_units/functional

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-02-23 02:17:12 +00:00
parent df7f3455a1
commit e712f63872
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def recent_tests(source_pattern, test_path, touched_since = 10.minutes.ago)
end
desc 'Test recent changes.'
Rake::TestTask.new('recent') do |t|
Rake::TestTask.new(:recent => [ :clone_structure_to_test ]) do |t|
since = TEST_CHANGES_SINCE
touched = FileList['test/**/*_test.rb'].select { |path| File.mtime(path) > since } +
recent_tests('app/models/*.rb', 'test/unit', since) +