aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/testing.rake
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2005-10-13 04:12:32 +0000
committerSam Stephenson <sam@37signals.com>2005-10-13 04:12:32 +0000
commit24c3599cc0f9987d48f2f1c4fe85fc84a6be3d31 (patch)
tree66730b24a1957dd7cf878fca1c62bc30505769bd /railties/lib/tasks/testing.rake
parent140a5f8f7b7deea713b5c7cbccbc8b57fecb2c7d (diff)
downloadrails-24c3599cc0f9987d48f2f1c4fe85fc84a6be3d31.tar.gz
rails-24c3599cc0f9987d48f2f1c4fe85fc84a6be3d31.tar.bz2
rails-24c3599cc0f9987d48f2f1c4fe85fc84a6be3d31.zip
Support using different database adapters for development and test with ActiveRecord::Base.schema_format = :ruby
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2549 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks/testing.rake')
-rw-r--r--railties/lib/tasks/testing.rake8
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