From 42001cc213bc48c7f64f0d2ad5b0cb508e9d88f1 Mon Sep 17 00:00:00 2001 From: rkh Date: Tue, 20 Oct 2009 17:01:28 +0000 Subject: [PATCH] fixed rspec dependency issue git-svn-id: https://dev.finn.de/svn/cockpit/trunk@215 7926756e-e54e-46e6-9721-ed318f58905e --- tasks/spec.rake | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tasks/spec.rake b/tasks/spec.rake index 4a64a5a261..39020fa7cc 100644 --- a/tasks/spec.rake +++ b/tasks/spec.rake @@ -1,13 +1,14 @@ -require "spec/rake/spectask" - -namespace :spec do - namespace :plugins do - desc "Runs the examples for redmine_costs" - Spec::Rake::SpecTask.new(:redmine_costs) do |t| - t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] - t.spec_files = FileList['vendor/plugins/redmine_costs/spec/**/*_spec.rb'] +begin + require "spec/rake/spectask" + namespace :spec do + namespace :plugins do + desc "Runs the examples for redmine_costs" + Spec::Rake::SpecTask.new(:redmine_costs) do |t| + t.spec_opts = ['--options', "\"#{RAILS_ROOT}/spec/spec.opts\""] + t.spec_files = FileList['vendor/plugins/redmine_costs/spec/**/*_spec.rb'] + end end end -end - -task :spec => "spec:plugins:redmine_costs" \ No newline at end of file + task :spec => "spec:plugins:redmine_costs" +rescue LoadError +end \ No newline at end of file