deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 3/4] Core: Move 'pp' into test_helper
Date Fri, 20 Jul 2012 13:39:17 GMT
From: Michal Fojtik <mfojtik@redhat.com>


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

diff --git a/server/tests/deltacloud/common.rb b/server/tests/deltacloud/common.rb
index 23826ad..728ad57 100644
--- a/server/tests/deltacloud/common.rb
+++ b/server/tests/deltacloud/common.rb
@@ -1,7 +1,6 @@
 require 'logger'
 require 'rack/test'
 require 'nokogiri'
-require 'pp'
 
 require_relative File.join('..', '..', 'lib', 'deltacloud_rack.rb')
 
diff --git a/server/tests/test_helper.rb b/server/tests/test_helper.rb
index 0f9b64a..5aed571 100644
--- a/server/tests/test_helper.rb
+++ b/server/tests/test_helper.rb
@@ -1,3 +1,7 @@
+require 'pp'
+
+ENV['RACK_ENV'] = 'test'
+
 %x[rake mock:fixtures:reset]
 
 if ENV['COVERAGE']
-- 
1.7.10.2


Mime
View raw message