buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r687459 - /incubator/buildr/trunk/rakelib/rspec.rake
Date Wed, 20 Aug 2008 20:48:32 GMT
Author: assaf
Date: Wed Aug 20 13:48:32 2008
New Revision: 687459

URL: http://svn.apache.org/viewvc?rev=687459&view=rev
Log:
Fixed bug in clobber; RSpec using specified options, ignoring defaults.

Modified:
    incubator/buildr/trunk/rakelib/rspec.rake

Modified: incubator/buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/rspec.rake?rev=687459&r1=687458&r2=687459&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/rspec.rake (original)
+++ incubator/buildr/trunk/rakelib/rspec.rake Wed Aug 20 13:48:32 2008
@@ -19,7 +19,7 @@
 
   directory 'reports'
   task 'clobber' do
-    rm_r 'failed'
+    rm_f 'failed'
     rm_rf 'reports'
   end
 
@@ -41,10 +41,10 @@
   desc 'Run RSpec and generate Spec and coverage reports (slow)'
   Spec::Rake::SpecTask.new('rcov') do |task|
     task.spec_files = FileList['spec/**/*spec.rb']
-    task.spec_opts << '--format' << 'html:reports/specs.html' << '--backtrace'
+    task.spec_opts = '--format', 'html:reports/specs.html', '--backtrace'
     task.rcov = true
     task.rcov_dir = 'reports/coverage'
-    task.rcov_opts = '--exclude' << "spec,bin,#{Config::CONFIG['sitedir']},#{Gem.path.join(',')}"
<< '--text-summary'
+    task.rcov_opts = '--exclude', "spec,bin,#{Config::CONFIG['sitedir']},#{Gem.path.join(',')}",
'--text-summary'
   end
   file 'reports/coverage'=>'rcov'
 



Mime
View raw message