deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 5/6] Client: Updated rspec in client to 2.0
Date Tue, 24 Jan 2012 11:31:13 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 client/Rakefile                  |    7 ++++---
 client/deltacloud-client.gemspec |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/client/Rakefile b/client/Rakefile
index 4fed388..6bf6260 100644
--- a/client/Rakefile
+++ b/client/Rakefile
@@ -41,10 +41,11 @@ rescue
 end
 
 if available?('rspec')
-  require 'spec/rake/spectask'
+  require 'rspec/core/rake_task'
   desc "Run all examples"
-  Spec::Rake::SpecTask.new('spec') do |t|
-    t.spec_files = FileList['specs/**/*_spec.rb']
+  RSpec::Core::RakeTask.new('spec') do |t|
+    t.pattern = FileList['specs/**/*_spec.rb']
+    t.rspec_opts = [ "--format", "nested", "--color"]
   end
 end
 
diff --git a/client/deltacloud-client.gemspec b/client/deltacloud-client.gemspec
index b52ab86..7b78530 100644
--- a/client/deltacloud-client.gemspec
+++ b/client/deltacloud-client.gemspec
@@ -33,5 +33,5 @@ Gem::Specification.new do |s|
 
   s.add_dependency('rest-client', '>= 1.6.1')
   s.add_dependency('nokogiri', '>= 1.4.3')
-  s.add_development_dependency('rspec', '>= 1.3.0')
+  s.add_development_dependency('rspec', '>= 2.0.0')
 end
-- 
1.7.4.4


Mime
View raw message