diff options
author | Josef Šimánek <josef.simanek@gmail.com> | 2013-07-13 12:49:31 +0200 |
---|---|---|
committer | Josef Šimánek <josef.simanek@gmail.com> | 2013-07-16 09:38:13 +0200 |
commit | 5ecd125a62da693320da8ea7bbccd60b71f67e63 (patch) | |
tree | 2f4c94ce9b995c1762017ad49a85853589da1808 /railties/lib/rails/test_unit | |
parent | 8df284a0e9fd075a7e77cbb578532950148d0f24 (diff) | |
download | rails-5ecd125a62da693320da8ea7bbccd60b71f67e63.tar.gz rails-5ecd125a62da693320da8ea7bbccd60b71f67e63.tar.bz2 rails-5ecd125a62da693320da8ea7bbccd60b71f67e63.zip |
Added generated unit test for generator generator and new test:generators rake task included in test:all rake task.
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index 3aa33d1bba..547846c833 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -14,7 +14,7 @@ namespace :test do # Placeholder task for other Railtie and plugins to enhance. See Active Record for an example. end - task :run => ['test:units', 'test:functionals', 'test:integration'] + task :run => ['test:units', 'test:functionals', 'test:generators', 'test:integration'] # Inspired by: http://ngauthier.com/2012/02/quick-tests-with-bash.html desc "Run tests quickly by merging all types and not resetting db" @@ -35,6 +35,10 @@ namespace :test do end end + Rails::TestTask.new(generators: "test:prepare") do |t| + t.pattern = "test/lib/generators/**/*_test.rb" + end + Rails::TestTask.new(units: "test:prepare") do |t| t.pattern = 'test/{models,helpers,unit}/**/*_test.rb' end |