diff options
Diffstat (limited to 'railties/lib/tasks/testing.rake')
-rw-r--r-- | railties/lib/tasks/testing.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index 3542b74763..7273a69ed4 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -11,7 +11,7 @@ def recent_tests(source_pattern, test_path, touched_since = 10.minutes.ago) end desc 'Test recent changes.' -Rake::TestTask.new(:recent => [ :clone_structure_to_test ]) do |t| +Rake::TestTask.new(:recent => [ :prepare_test_database ]) 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) + @@ -21,7 +21,7 @@ Rake::TestTask.new(:recent => [ :clone_structure_to_test ]) do |t| t.verbose = true t.test_files = touched.uniq end -task :test_recent => [ :clone_structure_to_test ] +task :test_recent => [ :prepare_test_database ] desc "Run the unit tests in test/unit" Rake::TestTask.new("test_units") { |t| @@ -29,7 +29,7 @@ Rake::TestTask.new("test_units") { |t| t.pattern = 'test/unit/**/*_test.rb' t.verbose = true } -task :test_units => [ :clone_structure_to_test ] +task :test_units => [ :prepare_test_database ] desc "Run the functional tests in test/functional" Rake::TestTask.new("test_functional") { |t| @@ -37,4 +37,4 @@ Rake::TestTask.new("test_functional") { |t| t.pattern = 'test/functional/**/*_test.rb' t.verbose = true } -task :test_functional => [ :clone_structure_to_test ]
\ No newline at end of file +task :test_functional => [ :prepare_test_database ]
\ No newline at end of file |