From db6d64e2f4b8b5623dfa77f3166eae0ee1eaa216 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 16 Oct 2015 00:22:23 +0900 Subject: [PATCH] Four of a kind --- Rakefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Rakefile b/Rakefile index 19fa97aa..6b328bc5 100644 --- a/Rakefile +++ b/Rakefile @@ -26,3 +26,33 @@ Rake::TestTask.new(:spec) do |t| t.test_files = %w[test/haml-spec/ugly_test.rb test/haml-spec/pretty_test.rb] t.verbose = true end + +namespace :test do + Rake::TestTask.new(:engine) do |t| + t.libs << 'lib' << 'test' + t.ruby_opts = %w[-rtest_helper] + t.test_files = %w[test/engine_test.rb] + t.verbose = true + end + + Rake::TestTask.new(:filters) do |t| + t.libs << 'lib' << 'test' + t.ruby_opts = %w[-rtest_helper] + t.test_files = %w[test/filters_test.rb] + t.verbose = true + end + + Rake::TestTask.new(:helper) do |t| + t.libs << 'lib' << 'test' + t.ruby_opts = %w[-rtest_helper] + t.test_files = %w[test/helper_test.rb] + t.verbose = true + end + + Rake::TestTask.new(:template) do |t| + t.libs << 'lib' << 'test' + t.ruby_opts = %w[-rtest_helper] + t.test_files = %w[test/template_test.rb] + t.verbose = true + end +end