8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172cfce commit 9141aaeCopy full SHA for 9141aae
test/csv/write/test_general.rb
@@ -222,13 +222,27 @@ def test_with_default_internal
222
end
223
224
225
+ def with_verbose(verbose)
226
+ original = $VERBOSE
227
+ begin
228
+ $VERBOSE = verbose
229
+ yield
230
+ ensure
231
+ $VERBOSE = original
232
+ end
233
234
+
235
def with_default_internal(encoding)
236
original = Encoding.default_internal
237
begin
- Encoding.default_internal = encoding
238
+ with_verbose(false) do
239
+ Encoding.default_internal = encoding
240
241
yield
242
ensure
- Encoding.default_internal = original
243
244
+ Encoding.default_internal = original
245
246
247
248
0 commit comments