buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject svn commit: r762480 - /buildr/trunk/rakelib/rspec.rake
Date Mon, 06 Apr 2009 19:58:53 GMT
Author: assaf
Date: Mon Apr  6 19:58:53 2009
New Revision: 762480

URL: http://svn.apache.org/viewvc?rev=762480&view=rev
Log:
Groovy compiler refuses to work under JRuby.

Modified:
    buildr/trunk/rakelib/rspec.rake

Modified: buildr/trunk/rakelib/rspec.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/rspec.rake?rev=762480&r1=762479&r2=762480&view=diff
==============================================================================
--- buildr/trunk/rakelib/rspec.rake (original)
+++ buildr/trunk/rakelib/rspec.rake Mon Apr  6 19:58:53 2009
@@ -20,7 +20,8 @@
 
   desc "Run all specs"
   Spec::Rake::SpecTask.new :spec=>'_reports' do |task|
-    task.spec_files = Dir['spec/**/*_spec.rb']
+    task.spec_files = FileList['spec/**/*_spec.rb']
+    task.spec_files.exclude('spec/groovy/*') if RUBY_PLATFORM[/java/]
     task.spec_opts = %w{--format specdoc --format failing_examples:failed --format html:_reports/specs.html
--loadby mtime --backtrace}    
     task.spec_opts << '--colour' if $stdout.isatty
   end
@@ -28,14 +29,14 @@
 
   desc 'Run all failed examples from previous run'
   Spec::Rake::SpecTask.new :failed do |task|
-    task.spec_files = Dir['spec/**/*_spec.rb']
+    task.spec_files = FileList['spec/**/*_spec.rb']
     task.spec_opts = %w{--format specdoc --format failing_examples:failed --example failed
--backtrace}    
     task.spec_opts << '--colour' if $stdout.isatty
   end
 
   desc 'Run RSpec and generate Spec and coverage reports (slow)'
   Spec::Rake::SpecTask.new :coverage=>'_reports' do |task|
-    task.spec_files = Dir['spec/**/*_spec.rb']
+    task.spec_files = FileList['spec/**/*_spec.rb']
     task.spec_opts = %W{--format progress --format failing_examples:failed --format html:_reports/specs.html
--backtrace}    
     task.spec_opts << '--colour' if $stdout.isatty
     task.rcov = true



Mime
View raw message