summaryrefslogtreecommitdiffstats
path: root/tasks/spec.rake
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-19 10:44:02 +0200
committerJérémy Zurcher <jeremy.zurcher@heraeus.com>2011-04-19 10:44:02 +0200
commitf6744ccdde074fc8ccc6395b0a85daa7be4d9ac0 (patch)
tree45473be07917bfa2e6d9c03ed62a38c2b0d81820 /tasks/spec.rake
parentede482ecb7e7d8199adc9ccb2e3ba9ed46aa33f8 (diff)
downloadffi-efl-f6744ccdde074fc8ccc6395b0a85daa7be4d9ac0.zip
ffi-efl-f6744ccdde074fc8ccc6395b0a85daa7be4d9ac0.tar.gz
add pattern= agrument to spec tasks
Diffstat (limited to 'tasks/spec.rake')
-rw-r--r--tasks/spec.rake5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks/spec.rake b/tasks/spec.rake
index 48df989..7345f5c 100644
--- a/tasks/spec.rake
+++ b/tasks/spec.rake
@@ -6,21 +6,24 @@ require 'rspec/core/rake_task'
namespace :spec do
desc 'Run all specs with basic output'
- RSpec::Core::RakeTask.new(:run) do |t|
+ RSpec::Core::RakeTask.new(:run) do |t,args|
t.ruby_opts = PROJ.ruby_opts
t.rspec_opts = PROJ.spec.opts
+ t.pattern = ENV['pattern'] if ENV['pattern']
end
desc 'Run all specs with text output'
RSpec::Core::RakeTask.new(:doc) do |t|
t.ruby_opts = PROJ.ruby_opts
t.rspec_opts = PROJ.spec.opts + ['-fs' ]
+ t.pattern = ENV['pattern'] if ENV['pattern']
end
desc 'Run all specs with html output'
RSpec::Core::RakeTask.new(:html) do |t|
t.ruby_opts = PROJ.ruby_opts
t.rspec_opts = PROJ.spec.opts + ['-fh' ]
+ t.pattern = ENV['pattern'] if ENV['pattern']
end
if HAVE_RCOV