mercadopago-custom-checkout 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gs/bin/rake +12 -8
- data/.gs/specifications/rake-10.5.0.gemspec +24 -28
- data/.tool-versions +1 -0
- data/lib/mercadopago/custom_checkout/version.rb +1 -1
- data/mercadopago-custom-checkout.gemspec +3 -3
- metadata +14 -125
- data/.gs/cache/faraday-0.9.2.gem +0 -0
- data/.gs/cache/minitest-5.9.0.gem +0 -0
- data/.gs/cache/multi_json-1.12.1.gem +0 -0
- data/.gs/cache/multipart-post-2.0.0.gem +0 -0
- data/.gs/gems/faraday-0.9.2/LICENSE.md +0 -20
- data/.gs/gems/faraday-0.9.2/README.md +0 -245
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http.rb +0 -237
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_http_ssl_patch.rb +0 -56
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -66
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/em_synchrony.rb +0 -100
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/excon.rb +0 -81
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/httpclient.rb +0 -117
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb +0 -130
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb +0 -49
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/patron.rb +0 -78
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/rack.rb +0 -58
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/test.rb +0 -162
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter/typhoeus.rb +0 -123
- data/.gs/gems/faraday-0.9.2/lib/faraday/adapter.rb +0 -46
- data/.gs/gems/faraday-0.9.2/lib/faraday/autoload.rb +0 -84
- data/.gs/gems/faraday-0.9.2/lib/faraday/connection.rb +0 -437
- data/.gs/gems/faraday-0.9.2/lib/faraday/error.rb +0 -53
- data/.gs/gems/faraday-0.9.2/lib/faraday/middleware.rb +0 -37
- data/.gs/gems/faraday-0.9.2/lib/faraday/options.rb +0 -359
- data/.gs/gems/faraday-0.9.2/lib/faraday/parameters.rb +0 -197
- data/.gs/gems/faraday-0.9.2/lib/faraday/rack_builder.rb +0 -213
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/authorization.rb +0 -42
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/basic_authentication.rb +0 -13
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/instrumentation.rb +0 -36
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/multipart.rb +0 -63
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/retry.rb +0 -154
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/token_authentication.rb +0 -15
- data/.gs/gems/faraday-0.9.2/lib/faraday/request/url_encoded.rb +0 -36
- data/.gs/gems/faraday-0.9.2/lib/faraday/request.rb +0 -92
- data/.gs/gems/faraday-0.9.2/lib/faraday/response/logger.rb +0 -59
- data/.gs/gems/faraday-0.9.2/lib/faraday/response/raise_error.rb +0 -21
- data/.gs/gems/faraday-0.9.2/lib/faraday/response.rb +0 -93
- data/.gs/gems/faraday-0.9.2/lib/faraday/upload_io.rb +0 -67
- data/.gs/gems/faraday-0.9.2/lib/faraday/utils.rb +0 -309
- data/.gs/gems/faraday-0.9.2/lib/faraday.rb +0 -268
- data/.gs/gems/minitest-5.9.0/.autotest +0 -34
- data/.gs/gems/minitest-5.9.0/History.rdoc +0 -1176
- data/.gs/gems/minitest-5.9.0/Manifest.txt +0 -26
- data/.gs/gems/minitest-5.9.0/README.rdoc +0 -656
- data/.gs/gems/minitest-5.9.0/Rakefile +0 -72
- data/.gs/gems/minitest-5.9.0/design_rationale.rb +0 -52
- data/.gs/gems/minitest-5.9.0/lib/hoe/minitest.rb +0 -26
- data/.gs/gems/minitest-5.9.0/lib/minitest/assertions.rb +0 -674
- data/.gs/gems/minitest-5.9.0/lib/minitest/autorun.rb +0 -13
- data/.gs/gems/minitest-5.9.0/lib/minitest/benchmark.rb +0 -424
- data/.gs/gems/minitest-5.9.0/lib/minitest/expectations.rb +0 -284
- data/.gs/gems/minitest-5.9.0/lib/minitest/hell.rb +0 -17
- data/.gs/gems/minitest-5.9.0/lib/minitest/mock.rb +0 -232
- data/.gs/gems/minitest-5.9.0/lib/minitest/parallel.rb +0 -69
- data/.gs/gems/minitest-5.9.0/lib/minitest/pride.rb +0 -4
- data/.gs/gems/minitest-5.9.0/lib/minitest/pride_plugin.rb +0 -142
- data/.gs/gems/minitest-5.9.0/lib/minitest/spec.rb +0 -331
- data/.gs/gems/minitest-5.9.0/lib/minitest/test.rb +0 -284
- data/.gs/gems/minitest-5.9.0/lib/minitest/unit.rb +0 -45
- data/.gs/gems/minitest-5.9.0/lib/minitest.rb +0 -815
- data/.gs/gems/minitest-5.9.0/test/minitest/metametameta.rb +0 -90
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_benchmark.rb +0 -137
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_mock.rb +0 -512
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_reporter.rb +0 -281
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_spec.rb +0 -967
- data/.gs/gems/minitest-5.9.0/test/minitest/test_minitest_test.rb +0 -1983
- data/.gs/gems/multi_json-1.12.1/CHANGELOG.md +0 -245
- data/.gs/gems/multi_json-1.12.1/CONTRIBUTING.md +0 -46
- data/.gs/gems/multi_json-1.12.1/LICENSE.md +0 -20
- data/.gs/gems/multi_json-1.12.1/README.md +0 -121
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter.rb +0 -49
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapter_error.rb +0 -15
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/gson.rb +0 -20
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/jr_jackson.rb +0 -25
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_common.rb +0 -23
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_gem.rb +0 -11
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/json_pure.rb +0 -11
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/nsjsonserialization.rb +0 -32
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/oj.rb +0 -25
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/ok_json.rb +0 -23
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb +0 -19
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/convertible_hash_keys.rb +0 -43
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/options.rb +0 -39
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/options_cache.rb +0 -29
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/parse_error.rb +0 -17
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/vendor/okjson.rb +0 -606
- data/.gs/gems/multi_json-1.12.1/lib/multi_json/version.rb +0 -17
- data/.gs/gems/multi_json-1.12.1/lib/multi_json.rb +0 -161
- data/.gs/gems/multi_json-1.12.1/multi_json.gemspec +0 -20
- data/.gs/gems/multipart-post-2.0.0/.gitignore +0 -6
- data/.gs/gems/multipart-post-2.0.0/.travis.yml +0 -7
- data/.gs/gems/multipart-post-2.0.0/Gemfile +0 -14
- data/.gs/gems/multipart-post-2.0.0/History.txt +0 -60
- data/.gs/gems/multipart-post-2.0.0/Manifest.txt +0 -9
- data/.gs/gems/multipart-post-2.0.0/README.md +0 -77
- data/.gs/gems/multipart-post-2.0.0/Rakefile +0 -9
- data/.gs/gems/multipart-post-2.0.0/lib/composite_io.rb +0 -108
- data/.gs/gems/multipart-post-2.0.0/lib/multipart_post.rb +0 -9
- data/.gs/gems/multipart-post-2.0.0/lib/multipartable.rb +0 -29
- data/.gs/gems/multipart-post-2.0.0/lib/net/http/post/multipart.rb +0 -27
- data/.gs/gems/multipart-post-2.0.0/lib/parts.rb +0 -96
- data/.gs/gems/multipart-post-2.0.0/multipart-post.gemspec +0 -22
- data/.gs/gems/multipart-post-2.0.0/test/multibyte.txt +0 -1
- data/.gs/gems/multipart-post-2.0.0/test/net/http/post/test_multipart.rb +0 -110
- data/.gs/gems/multipart-post-2.0.0/test/test_composite_io.rb +0 -115
- data/.gs/gems/multipart-post-2.0.0/test/test_parts.rb +0 -86
- data/.gs/specifications/faraday-0.9.2.gemspec +0 -31
- data/.gs/specifications/minitest-5.9.0.gemspec +0 -39
- data/.gs/specifications/multi_json-1.12.1.gemspec +0 -33
- data/.gs/specifications/multipart-post-2.0.0.gemspec +0 -22
- data/.ruby-version +0 -1
@@ -1,281 +0,0 @@
|
|
1
|
-
require "minitest/autorun"
|
2
|
-
require "minitest/metametameta"
|
3
|
-
|
4
|
-
class TestMinitestReporter < MetaMetaMetaTestCase
|
5
|
-
|
6
|
-
attr_accessor :r, :io
|
7
|
-
|
8
|
-
def new_composite_reporter
|
9
|
-
reporter = Minitest::CompositeReporter.new
|
10
|
-
reporter << Minitest::SummaryReporter.new(self.io)
|
11
|
-
reporter << Minitest::ProgressReporter.new(self.io)
|
12
|
-
|
13
|
-
def reporter.first
|
14
|
-
reporters.first
|
15
|
-
end
|
16
|
-
|
17
|
-
def reporter.results
|
18
|
-
first.results
|
19
|
-
end
|
20
|
-
|
21
|
-
def reporter.count
|
22
|
-
first.count
|
23
|
-
end
|
24
|
-
|
25
|
-
def reporter.assertions
|
26
|
-
first.assertions
|
27
|
-
end
|
28
|
-
|
29
|
-
reporter
|
30
|
-
end
|
31
|
-
|
32
|
-
def setup
|
33
|
-
self.io = StringIO.new("")
|
34
|
-
self.r = new_composite_reporter
|
35
|
-
end
|
36
|
-
|
37
|
-
def error_test
|
38
|
-
unless defined? @et then
|
39
|
-
@et = Minitest::Test.new(:woot)
|
40
|
-
@et.failures << Minitest::UnexpectedError.new(begin
|
41
|
-
raise "no"
|
42
|
-
rescue => e
|
43
|
-
e
|
44
|
-
end)
|
45
|
-
end
|
46
|
-
@et
|
47
|
-
end
|
48
|
-
|
49
|
-
def fail_test
|
50
|
-
unless defined? @ft then
|
51
|
-
@ft = Minitest::Test.new(:woot)
|
52
|
-
@ft.failures << begin
|
53
|
-
raise Minitest::Assertion, "boo"
|
54
|
-
rescue Minitest::Assertion => e
|
55
|
-
e
|
56
|
-
end
|
57
|
-
end
|
58
|
-
@ft
|
59
|
-
end
|
60
|
-
|
61
|
-
def passing_test
|
62
|
-
@pt ||= Minitest::Test.new(:woot)
|
63
|
-
end
|
64
|
-
|
65
|
-
def skip_test
|
66
|
-
unless defined? @st then
|
67
|
-
@st = Minitest::Test.new(:woot)
|
68
|
-
@st.failures << begin
|
69
|
-
raise Minitest::Skip
|
70
|
-
rescue Minitest::Assertion => e
|
71
|
-
e
|
72
|
-
end
|
73
|
-
end
|
74
|
-
@st
|
75
|
-
end
|
76
|
-
|
77
|
-
def test_passed_eh_empty
|
78
|
-
assert r.passed?
|
79
|
-
end
|
80
|
-
|
81
|
-
def test_passed_eh_failure
|
82
|
-
r.results << fail_test
|
83
|
-
|
84
|
-
refute r.passed?
|
85
|
-
end
|
86
|
-
|
87
|
-
SKIP_MSG = "\n\nYou have skipped tests. Run with --verbose for details."
|
88
|
-
|
89
|
-
def test_passed_eh_error
|
90
|
-
r.start
|
91
|
-
|
92
|
-
r.results << error_test
|
93
|
-
|
94
|
-
refute r.passed?
|
95
|
-
|
96
|
-
r.report
|
97
|
-
|
98
|
-
refute_match SKIP_MSG, io.string
|
99
|
-
end
|
100
|
-
|
101
|
-
def test_passed_eh_skipped
|
102
|
-
r.start
|
103
|
-
r.results << skip_test
|
104
|
-
assert r.passed?
|
105
|
-
|
106
|
-
restore_env do
|
107
|
-
r.report
|
108
|
-
end
|
109
|
-
|
110
|
-
assert_match SKIP_MSG, io.string
|
111
|
-
end
|
112
|
-
|
113
|
-
def test_passed_eh_skipped_verbose
|
114
|
-
r.first.options[:verbose] = true
|
115
|
-
|
116
|
-
r.start
|
117
|
-
r.results << skip_test
|
118
|
-
assert r.passed?
|
119
|
-
r.report
|
120
|
-
|
121
|
-
refute_match SKIP_MSG, io.string
|
122
|
-
end
|
123
|
-
|
124
|
-
def test_start
|
125
|
-
r.start
|
126
|
-
|
127
|
-
exp = "Run options: \n\n# Running:\n\n"
|
128
|
-
|
129
|
-
assert_equal exp, io.string
|
130
|
-
end
|
131
|
-
|
132
|
-
def test_record_pass
|
133
|
-
r.record passing_test
|
134
|
-
|
135
|
-
assert_equal ".", io.string
|
136
|
-
assert_empty r.results
|
137
|
-
assert_equal 1, r.count
|
138
|
-
assert_equal 0, r.assertions
|
139
|
-
end
|
140
|
-
|
141
|
-
def test_record_fail
|
142
|
-
r.record fail_test
|
143
|
-
|
144
|
-
assert_equal "F", io.string
|
145
|
-
assert_equal [fail_test], r.results
|
146
|
-
assert_equal 1, r.count
|
147
|
-
assert_equal 0, r.assertions
|
148
|
-
end
|
149
|
-
|
150
|
-
def test_record_error
|
151
|
-
r.record error_test
|
152
|
-
|
153
|
-
assert_equal "E", io.string
|
154
|
-
assert_equal [error_test], r.results
|
155
|
-
assert_equal 1, r.count
|
156
|
-
assert_equal 0, r.assertions
|
157
|
-
end
|
158
|
-
|
159
|
-
def test_record_skip
|
160
|
-
r.record skip_test
|
161
|
-
|
162
|
-
assert_equal "S", io.string
|
163
|
-
assert_equal [skip_test], r.results
|
164
|
-
assert_equal 1, r.count
|
165
|
-
assert_equal 0, r.assertions
|
166
|
-
end
|
167
|
-
|
168
|
-
def test_report_empty
|
169
|
-
r.start
|
170
|
-
r.report
|
171
|
-
|
172
|
-
exp = clean <<-EOM
|
173
|
-
Run options:
|
174
|
-
|
175
|
-
# Running:
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
Finished in 0.00
|
180
|
-
|
181
|
-
0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
|
182
|
-
EOM
|
183
|
-
|
184
|
-
assert_equal exp, normalize_output(io.string)
|
185
|
-
end
|
186
|
-
|
187
|
-
def test_report_passing
|
188
|
-
r.start
|
189
|
-
r.record passing_test
|
190
|
-
r.report
|
191
|
-
|
192
|
-
exp = clean <<-EOM
|
193
|
-
Run options:
|
194
|
-
|
195
|
-
# Running:
|
196
|
-
|
197
|
-
.
|
198
|
-
|
199
|
-
Finished in 0.00
|
200
|
-
|
201
|
-
1 runs, 0 assertions, 0 failures, 0 errors, 0 skips
|
202
|
-
EOM
|
203
|
-
|
204
|
-
assert_equal exp, normalize_output(io.string)
|
205
|
-
end
|
206
|
-
|
207
|
-
def test_report_failure
|
208
|
-
r.start
|
209
|
-
r.record fail_test
|
210
|
-
r.report
|
211
|
-
|
212
|
-
exp = clean <<-EOM
|
213
|
-
Run options:
|
214
|
-
|
215
|
-
# Running:
|
216
|
-
|
217
|
-
F
|
218
|
-
|
219
|
-
Finished in 0.00
|
220
|
-
|
221
|
-
1) Failure:
|
222
|
-
Minitest::Test#woot [FILE:LINE]:
|
223
|
-
boo
|
224
|
-
|
225
|
-
1 runs, 0 assertions, 1 failures, 0 errors, 0 skips
|
226
|
-
EOM
|
227
|
-
|
228
|
-
assert_equal exp, normalize_output(io.string)
|
229
|
-
end
|
230
|
-
|
231
|
-
def test_report_error
|
232
|
-
r.start
|
233
|
-
r.record error_test
|
234
|
-
r.report
|
235
|
-
|
236
|
-
exp = clean <<-EOM
|
237
|
-
Run options:
|
238
|
-
|
239
|
-
# Running:
|
240
|
-
|
241
|
-
E
|
242
|
-
|
243
|
-
Finished in 0.00
|
244
|
-
|
245
|
-
1) Error:
|
246
|
-
Minitest::Test#woot:
|
247
|
-
RuntimeError: no
|
248
|
-
FILE:LINE:in `error_test'
|
249
|
-
FILE:LINE:in `test_report_error'
|
250
|
-
|
251
|
-
1 runs, 0 assertions, 0 failures, 1 errors, 0 skips
|
252
|
-
EOM
|
253
|
-
|
254
|
-
assert_equal exp, normalize_output(io.string)
|
255
|
-
end
|
256
|
-
|
257
|
-
def test_report_skipped
|
258
|
-
r.start
|
259
|
-
r.record skip_test
|
260
|
-
|
261
|
-
restore_env do
|
262
|
-
r.report
|
263
|
-
end
|
264
|
-
|
265
|
-
exp = clean <<-EOM
|
266
|
-
Run options:
|
267
|
-
|
268
|
-
# Running:
|
269
|
-
|
270
|
-
S
|
271
|
-
|
272
|
-
Finished in 0.00
|
273
|
-
|
274
|
-
1 runs, 0 assertions, 0 failures, 0 errors, 1 skips
|
275
|
-
|
276
|
-
You have skipped tests. Run with --verbose for details.
|
277
|
-
EOM
|
278
|
-
|
279
|
-
assert_equal exp, normalize_output(io.string)
|
280
|
-
end
|
281
|
-
end
|