aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/Rakefile
diff options
context:
space:
mode:
authorŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-06 00:43:32 +0200
committerŁukasz Strzałkowski <lukasz.strzalkowski@gmail.com>2013-08-25 11:39:14 +0200
commit969b22f1893b8352601080eb411ea835689b4021 (patch)
tree84fef28748eec07a99ba4739de0eafd5603a95ca /actionview/Rakefile
parent1538395d4c249f7322b11218488d375182088eaa (diff)
downloadrails-969b22f1893b8352601080eb411ea835689b4021.tar.gz
rails-969b22f1893b8352601080eb411ea835689b4021.tar.bz2
rails-969b22f1893b8352601080eb411ea835689b4021.zip
Cleanup & reorganise rake tasks in AV
Diffstat (limited to 'actionview/Rakefile')
-rw-r--r--actionview/Rakefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/actionview/Rakefile b/actionview/Rakefile
index 8e980df7fc..e98a020f42 100644
--- a/actionview/Rakefile
+++ b/actionview/Rakefile
@@ -7,14 +7,7 @@ task :default => :test
# Run the unit tests
desc "Run all unit tests"
-task :test => [:test_action_view, :test_active_record_integration]
-
-Rake::TestTask.new(:test_action_view) do |t|
- t.libs << 'test'
- t.test_files = Dir.glob('test/template/**/*_test.rb').sort
- t.warning = true
- t.verbose = true
-end
+task :test => ["test:template", "test:integration:active_record"]
namespace :test do
task :isolated do
@@ -25,16 +18,20 @@ namespace :test do
Rake::TestTask.new(:template) do |t|
t.libs << 'test'
- t.pattern = 'test/template/**/*.rb'
+ t.test_files = Dir.glob('test/template/**/*_test.rb').sort
+ t.warning = true
+ t.verbose = true
end
-end
-desc 'ActiveRecord Integration Tests'
-Rake::TestTask.new(:test_active_record_integration) do |t|
- t.libs << 'test'
- t.test_files = Dir.glob("test/activerecord/*_test.rb")
- t.warning = true
- t.verbose = true
+ namespace :integration do
+ desc 'ActiveRecord Integration Tests'
+ Rake::TestTask.new(:active_record) do |t|
+ t.libs << 'test'
+ t.test_files = Dir.glob("test/activerecord/*_test.rb")
+ t.warning = true
+ t.verbose = true
+ end
+ end
end
spec = eval(File.read('actionview.gemspec'))