RSpec create the /specdoc folder if needed.
authorSimone Carletti <weppos@weppos.net>
Thu, 14 Jun 2012 09:35:46 +0000 (11:35 +0200)
committerSimone Carletti <weppos@weppos.net>
Thu, 14 Jun 2012 09:35:46 +0000 (11:35 +0200)
In this way, we don't get this folder for free every time rake evaluates the tasks.

tasks/spec.rake

index 021b3eb747535a528ba909c593e46b7acf97722c..905935aa57633c9239ae582ad2fc330c21282858 100644 (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