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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
Description: do not use bundler or simplecov in tests
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2018-03-14
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,8 +1,3 @@
-require 'rubygems'
-require 'bundler'
-Bundler.setup
-
-require 'helpers/start_simplecov'
require 'test/unit'
require 'open-uri'
--- a/test/test_other_net_http_libraries.rb
+++ b/test/test_other_net_http_libraries.rb
@@ -25,29 +25,29 @@
# start one process per test. The original process (comprising
# the rest of the tests) will just get the default name
# "Unit Tests".
- simplecov_code = "SIMPLECOV_COMMAND_NAME = '#{current_test_name}'; require 'helpers/start_simplecov'"
+ #simplecov_code = "SIMPLECOV_COMMAND_NAME = '#{current_test_name}'; require 'helpers/start_simplecov'"
- output = `#{ruby_path} #{current_ruby_opts.join(' ')} #{load_path_opts} -e "#{simplecov_code}; #{requires}; #{additional_code}" 2>&1`
+ #output = `#{ruby_path} #{current_ruby_opts.join(' ')} #{load_path_opts} -e "#{simplecov_code}; #{requires}; #{additional_code}" 2>&1`
remove_warnings_from_gems_and_stdlib(output)
end
- def test_requiring_samuel_before_fakeweb_prints_warning
+ def _test_requiring_samuel_before_fakeweb_prints_warning
output = capture_output_from_requiring %w(samuel fakeweb)
assert_match %r(Warning: FakeWeb was loaded after Samuel), output
end
- def test_requiring_samuel_after_fakeweb_does_not_print_warning
+ def _test_requiring_samuel_after_fakeweb_does_not_print_warning
output = capture_output_from_requiring %w(fakeweb samuel)
assert_empty output
end
- def test_requiring_right_http_connection_before_fakeweb_and_then_connecting_does_not_print_warning
+ def _test_requiring_right_http_connection_before_fakeweb_and_then_connecting_does_not_print_warning
additional_code = "Net::HTTP.start('example.com')"
output = capture_output_from_requiring %w(right_http_connection fakeweb), additional_code
assert_empty output
end
- def test_requiring_right_http_connection_after_fakeweb_and_then_connecting_prints_warning
+ def _test_requiring_right_http_connection_after_fakeweb_and_then_connecting_prints_warning
additional_code = "Net::HTTP.start('example.com')"
output = capture_output_from_requiring %w(fakeweb right_http_connection), additional_code
assert_match %r(Warning: RightHttpConnection was loaded after FakeWeb), output
|