Package: ruby-fog-aws / 0.12.0-1

01-dont-use-rubygems-to-run-tests.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Miguel Landaeta <nomadium@debian.org>
Date: Fri, 03 Jul 2015 12:22:52 -0300
Subject: Don't use rubygems/bundler to run tests
Forwarded: no

diff --git a/Rakefile b/Rakefile
index 645547a..1f81302 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,8 +1,8 @@
-require "bundler/gem_tasks"
+#require "bundler/gem_tasks"
 
 task :default => :test
 
 mock = ENV['FOG_MOCK'] || 'true'
 task :test do
-  sh("export FOG_MOCK=#{mock} && bundle exec shindont")
+  sh("export FOG_MOCK=#{mock} && shindont")
 end
diff --git a/tests/helper.rb b/tests/helper.rb
index 22faa9f..60d4f07 100644
--- a/tests/helper.rb
+++ b/tests/helper.rb
@@ -7,7 +7,7 @@ end
 
 require File.expand_path('../../lib/fog/aws', __FILE__)
 
-Bundler.require(:test)
+#Bundler.require(:test)
 
 Excon.defaults.merge!(:debug_request => true, :debug_response => true)