RSpec create the /specdoc folder if needed.

In this way, we don't get this folder for free every time rake evaluates the tasks.
This commit is contained in:
Simone Carletti 2012-06-14 11:35:46 +02:00
parent efb3938f7c
commit b7430aeb8c
1 changed files with 0 additions and 1 deletions

View File

@ -9,7 +9,6 @@ namespace :spec do
desc 'Generate HTML Specdocs for all specs.'
RSpec::Core::RakeTask.new(:specdoc) do |t|
specdoc_path = File.expand_path('../../specdoc', __FILE__)
Dir.mkdir(specdoc_path) if !File.exist?(specdoc_path)
t.rspec_opts = %W( --format html --out #{File.join(specdoc_path, 'index.html')} )
t.fail_on_error = false