deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/4] CIMI: Added possibility to run single spec for specified model in Rakefile
Date Fri, 18 Nov 2011 13:32:30 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/Rakefile |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/server/Rakefile b/server/Rakefile
index 9436518..53fb7bf 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -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|
-- 
1.7.4.4


Mime
View raw message