Author: assaf
Date: Mon Jul 28 17:36:50 2008
New Revision: 680584
URL: http://svn.apache.org/viewvc?rev=680584&view=rev
Log:
Changed failing task to failed, and failing file name to failed as well.
Why? just because.
Modified:
incubator/buildr/trunk/.gitignore
incubator/buildr/trunk/rakelib/rspec.rake
Modified: incubator/buildr/trunk/.gitignore
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/.gitignore?rev=680584&r1=680583&r2=680584&view=diff
==============================================================================
--- incubator/buildr/trunk/.gitignore (original)
+++ incubator/buildr/trunk/.gitignore Mon Jul 28 17:36:50 2008
@@ -1,5 +1,5 @@
pkg
-failing
+failed
reports
rdoc
site
Modified: incubator/buildr/trunk/rakelib/rspec.rake
URL:
http://svn.apache.org/viewvc/incubator/buildr/trunk/rakelib/rspec.rake?rev=680584&r1=680583&r2=680584&view=diff
==============================================================================
--- incubator/buildr/trunk/rakelib/rspec.rake (original)
+++ incubator/buildr/trunk/rakelib/rspec.rake Mon Jul 28 17:36:50 2008
@@ -19,22 +19,22 @@
directory 'reports'
task 'clobber' do
- rm 'failing' rescue nil
+ rm_r 'failed'
rm_rf 'reports'
end
desc 'Run all specs'
Spec::Rake::SpecTask.new('spec'=>'reports') do |task|
task.spec_files = FileList['spec/**/*_spec.rb']
- task.spec_opts << '--options' << 'spec/spec.opts' << '--format' <<
'failing_examples:failing' <<
+ task.spec_opts << '--options' << 'spec/spec.opts' << '--format' <<
'failing_examples:failed' <<
'--format' << 'html:reports/specs.html' << '--backtrace'
end
file 'reports/specs.html'=>'spec'
- desc 'Run all failing examples from previous run'
- Spec::Rake::SpecTask.new('failing') do |task|
+ desc 'Run all failed examples from previous run'
+ Spec::Rake::SpecTask.new('failed') do |task|
task.spec_files = FileList['spec/**/*_spec.rb']
- task.spec_opts << '--options' << 'spec/spec.opts' << '--format' <<
'failing_examples:failing' << '--example' << 'failing'
+ task.spec_opts << '--options' << 'spec/spec.opts' << '--format' <<
'failing_examples:failed' << '--example' << 'failed'
end
# Useful for testing with JRuby when using Ruby and vice versa.