do not define rspec task if rspec is unavailable

This commit is contained in:
Jonne Haß 2012-10-24 21:49:48 +02:00
parent 1a93ccd548
commit 6302181582

View file

@ -11,9 +11,11 @@ namespace :ci do
end end
end end
namespace :tests do if defined?(RSpec)
desc "Run all specs that generate fixtures for rspec or jasmine" namespace :tests do
RSpec::Core::RakeTask.new(:generate_fixtures) do |t| desc "Run all specs that generate fixtures for rspec or jasmine"
t.rspec_opts = ['--tag fixture'] RSpec::Core::RakeTask.new(:generate_fixtures) do |t|
t.rspec_opts = ['--tag fixture']
end
end end
end end