deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1203692 - /incubator/deltacloud/trunk/server/Rakefile
Date Fri, 18 Nov 2011 15:28:07 GMT
Author: mfojtik
Date: Fri Nov 18 15:28:07 2011
New Revision: 1203692

URL: http://svn.apache.org/viewvc?rev=1203692&view=rev
Log:
CIMI: Added possibility to run single spec for specified model in Rakefile

Modified:
    incubator/deltacloud/trunk/server/Rakefile

Modified: incubator/deltacloud/trunk/server/Rakefile
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/Rakefile?rev=1203692&r1=1203691&r2=1203692&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/Rakefile (original)
+++ incubator/deltacloud/trunk/server/Rakefile Fri Nov 18 15:28:07 2011
@@ -95,6 +95,15 @@ RSpec::Core::RakeTask.new do |t|
   t.rspec_opts = [ "--format", "nested", "--color", "-r ./spec/spec_helper.rb"]
 end
 
+Dir['spec/**/*_spec.rb'].each do |file|
+  RSpec::Core::RakeTask.new("spec:#{File.basename(file).gsub(/_spec\.rb$/, '')}") do |t|
+    t.pattern = FileList[file]
+    t.rspec_opts = [ "--format", "nested", "--color", "-r ./spec/spec_helper.rb"]
+  end
+end
+
+
+
 begin
   require 'yard'
   YARD::Rake::YardocTask.new do |t|



Mime
View raw message