OK.
Tong Li
Emerging Technologies & Standards
Building 501/B205
liton...@us.ibm.com



From:   mfoj...@redhat.com
To:     deltacloud-dev@incubator.apache.org
Date:   11/18/2011 08:32 AM
Subject:        [PATCH core 1/4] CIMI: Added possibility to run single spec for
            specified model in Rakefile



From: Michal Fojtik <mfoj...@redhat.com>


Signed-off-by: Michal fojtik <mfoj...@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

Reply via email to