1 |
graaff 10/06/25 21:04:16 |
2 |
|
3 |
Added: oauth-0.4.1-optional-tests.patch |
4 |
Log: |
5 |
Version bump. |
6 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-ruby/oauth/files/oauth-0.4.1-optional-tests.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/oauth/files/oauth-0.4.1-optional-tests.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/oauth/files/oauth-0.4.1-optional-tests.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: oauth-0.4.1-optional-tests.patch |
15 |
=================================================================== |
16 |
Fix loading (or rather, not loading) of optional tests. Submitted upstream. |
17 |
http://github.com/graaff/oauth-ruby/commit/de7fd4a02edf236e74f4bb84eeafb02597500d79 |
18 |
|
19 |
diff --git a/test/test_curb_request_proxy.rb b/test/test_curb_request_proxy.rb |
20 |
index ae5cb50..af15435 100644 |
21 |
--- a/test/test_curb_request_proxy.rb |
22 |
+++ b/test/test_curb_request_proxy.rb |
23 |
@@ -1,12 +1,9 @@ |
24 |
require 'test_helper' |
25 |
|
26 |
begin |
27 |
- require 'oauth/request_proxy/curb_request' |
28 |
- require 'curb' |
29 |
-rescue LoadError => e |
30 |
- warn "! problems loading curb, skipping these tests: #{e}" |
31 |
- return |
32 |
-end |
33 |
+ |
34 |
+require 'oauth/request_proxy/curb_request' |
35 |
+require 'curb' |
36 |
|
37 |
|
38 |
class CurbRequestProxyTest < Test::Unit::TestCase |
39 |
@@ -73,4 +70,8 @@ class CurbRequestProxyTest < Test::Unit::TestCase |
40 |
assert_equal expected_parameters, request_proxy.parameters_for_signature |
41 |
assert_equal 'http://example.com/test', request_proxy.normalized_uri |
42 |
end |
43 |
-end |
44 |
\ No newline at end of file |
45 |
+end |
46 |
+ |
47 |
+rescue LoadError => e |
48 |
+ warn "! problems loading curb, skipping these tests: #{e}" |
49 |
+end |
50 |
diff --git a/test/test_em_http_client.rb b/test/test_em_http_client.rb |
51 |
index 8b8642f..c3f97e5 100644 |
52 |
--- a/test/test_em_http_client.rb |
53 |
+++ b/test/test_em_http_client.rb |
54 |
@@ -1,10 +1,7 @@ |
55 |
require 'test_helper' |
56 |
begin |
57 |
- require 'oauth/client/em_http' |
58 |
-rescue LoadError => e |
59 |
- warn "! problem loading em-http, skipping these tests: #{e}" |
60 |
- return |
61 |
-end |
62 |
+ |
63 |
+require 'oauth/client/em_http' |
64 |
|
65 |
class EmHttpClientTest < Test::Unit::TestCase |
66 |
|
67 |
@@ -77,3 +74,7 @@ class EmHttpClientTest < Test::Unit::TestCase |
68 |
end |
69 |
|
70 |
end |
71 |
+ |
72 |
+rescue LoadError => e |
73 |
+ warn "! problem loading em-http, skipping these tests: #{e}" |
74 |
+end |
75 |
diff --git a/test/test_em_http_request_proxy.rb b/test/test_em_http_request_proxy.rb |
76 |
index 055a95a..f0200a7 100644 |
77 |
--- a/test/test_em_http_request_proxy.rb |
78 |
+++ b/test/test_em_http_request_proxy.rb |
79 |
@@ -1,12 +1,9 @@ |
80 |
require 'test_helper' |
81 |
|
82 |
begin |
83 |
- require 'em-http' |
84 |
- require 'oauth/request_proxy/em_http_request' |
85 |
-rescue LoadError => e |
86 |
- warn "! problem loading em-http, skipping these tests: #{e}" |
87 |
- return |
88 |
-end |
89 |
+ |
90 |
+require 'em-http' |
91 |
+require 'oauth/request_proxy/em_http_request' |
92 |
|
93 |
|
94 |
class EmHttpRequestProxyTest < Test::Unit::TestCase |
95 |
@@ -111,4 +108,8 @@ class EmHttpRequestProxyTest < Test::Unit::TestCase |
96 |
OAuth::RequestProxy.proxy(create_client(opts), arguments) |
97 |
end |
98 |
|
99 |
-end |
100 |
\ No newline at end of file |
101 |
+end |
102 |
+ |
103 |
+rescue LoadError => e |
104 |
+ warn "! problem loading em-http, skipping these tests: #{e}" |
105 |
+end |
106 |
diff --git a/test/test_typhoeus_request_proxy.rb b/test/test_typhoeus_request_proxy.rb |
107 |
index 4044604..c54ad8e 100644 |
108 |
--- a/test/test_typhoeus_request_proxy.rb |
109 |
+++ b/test/test_typhoeus_request_proxy.rb |
110 |
@@ -1,13 +1,9 @@ |
111 |
require 'test_helper' |
112 |
|
113 |
begin |
114 |
- require 'oauth/request_proxy/typhoeus_request' |
115 |
- require 'typhoeus' |
116 |
-rescue LoadError => e |
117 |
- warn "! problem loading typhoeus, skipping these tests: #{e}" |
118 |
- return |
119 |
-end |
120 |
|
121 |
+require 'oauth/request_proxy/typhoeus_request' |
122 |
+require 'typhoeus' |
123 |
|
124 |
class TyphoeusRequestProxyTest < Test::Unit::TestCase |
125 |
|
126 |
@@ -78,3 +74,8 @@ class TyphoeusRequestProxyTest < Test::Unit::TestCase |
127 |
assert_equal 'POST', request_proxy.method |
128 |
end |
129 |
end |
130 |
+ |
131 |
+rescue LoadError => e |
132 |
+ warn "! problem loading typhoeus, skipping these tests: #{e}" |
133 |
+end |
134 |
+ |