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
if defined?(RSpec)
namespace :tests do
desc "Run all specs that generate fixtures for rspec or jasmine"
RSpec::Core::RakeTask.new(:generate_fixtures) do |t|
t.rspec_opts = ['--tag fixture']
end
end
end