do not define rspec task if rspec is unavailable
This commit is contained in:
parent
1a93ccd548
commit
6302181582
1 changed files with 6 additions and 4 deletions
|
|
@ -11,9 +11,11 @@ namespace :ci do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if defined?(RSpec)
|
||||||
namespace :tests do
|
namespace :tests do
|
||||||
desc "Run all specs that generate fixtures for rspec or jasmine"
|
desc "Run all specs that generate fixtures for rspec or jasmine"
|
||||||
RSpec::Core::RakeTask.new(:generate_fixtures) do |t|
|
RSpec::Core::RakeTask.new(:generate_fixtures) do |t|
|
||||||
t.rspec_opts = ['--tag fixture']
|
t.rspec_opts = ['--tag fixture']
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue