fixed rspec dependency issue

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@215 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
rkh 15 years ago
parent 3d94b3f5a5
commit 42001cc213
  1. 21
      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
task :spec => "spec:plugins:redmine_costs"
rescue LoadError
end
task :spec => "spec:plugins:redmine_costs"
Loading…
Cancel
Save