deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core] Core: Updated rspec to rspec-core in our test suite
Date Thu, 15 Dec 2011 14:21:12 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/tests/common.rb |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/server/tests/common.rb b/server/tests/common.rb
index 045033a..528f86d 100644
--- a/server/tests/common.rb
+++ b/server/tests/common.rb
@@ -20,8 +20,9 @@ $top_srcdir = File::dirname(File::dirname(__FILE__))
 
 require 'rubygems'
 require 'yaml'
+require 'rspec/core'
+require 'rspec/matchers'
 require 'test/unit'
-require 'spec'
 require 'nokogiri'
 require 'json'
 require 'digest/sha1'
@@ -43,8 +44,9 @@ configure :test do
   set :show_exceptions, false
 end
 
-Spec::Runner.configure do |conf|
+RSpec.configure do |conf|
   conf.include Rack::Test::Methods
+  conf.expect_with :rspec
 end
 
 module DeltacloudTestCommon
-- 
1.7.4.4


Mime
View raw message