From 34b48ea35e2cccd479aac0bbc9d0faf53cb1c8ce Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Sat, 28 May 2011 18:21:59 +0200 Subject: [PATCH] add a test:core task to quickly run core tests (e.g non-template-engine tests) --- Rakefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Rakefile b/Rakefile index c5fe741b..e2e4a64a 100644 --- a/Rakefile +++ b/Rakefile @@ -37,6 +37,16 @@ Rake::TestTask.new(:test) do |t| t.ruby_opts << '-I.' end +Rake::TestTask.new(:"test:core") do |t| + core_tests = %w[base delegator encoding extensions filter + helpers mapped_error middleware radius rdoc + readme request response result route_added_hook + routing server settings sinatra static templates] + t.test_files = core_tests.map {|n| "test/#{n}_test.rb"} + t.ruby_opts = ["-rubygems"] if defined? Gem + t.ruby_opts << "-I." +end + # Rcov ================================================================ namespace :test do