File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -1966,9 +1966,11 @@ def test_use_gemdeps_missing_gem
1966
1966
EXPECTED
1967
1967
1968
1968
Gem ::Deprecate . skip_during do
1969
- assert_output nil , expected do
1969
+ actual_stdout , actual_stderr = capture_output do
1970
1970
Gem . use_gemdeps
1971
1971
end
1972
+ assert_empty actual_stdout
1973
+ assert_equal ( expected , actual_stderr )
1972
1974
end
1973
1975
ensure
1974
1976
ENV [ 'RUBYGEMS_GEMDEPS' ] = rubygems_gemdeps
Original file line number Diff line number Diff line change @@ -87,9 +87,10 @@ def test_install_from_gemdeps_explain
87
87
a-2
88
88
EXPECTED
89
89
90
- assert_output expected do
90
+ actual , _ = capture_output do
91
91
rs . install_from_gemdeps :gemdeps => io . path , :explain => true
92
92
end
93
+ assert_equal ( expected , actual )
93
94
end
94
95
end
95
96
Original file line number Diff line number Diff line change @@ -3021,9 +3021,11 @@ def test_unresolved_specs
3021
3021
Please report a bug if this causes problems.
3022
3022
EXPECTED
3023
3023
3024
- assert_output nil , expected do
3024
+ actual_stdout , actual_stderr = capture_output do
3025
3025
specification . reset
3026
3026
end
3027
+ assert_empty actual_stdout
3028
+ assert_equal ( expected , actual_stderr )
3027
3029
end
3028
3030
3029
3031
def test_unresolved_specs_with_versions
@@ -3052,9 +3054,11 @@ def test_unresolved_specs_with_versions
3052
3054
Please report a bug if this causes problems.
3053
3055
EXPECTED
3054
3056
3055
- assert_output nil , expected do
3057
+ actual_stdout , actual_stderr = capture_output do
3056
3058
specification . reset
3057
3059
end
3060
+ assert_empty actual_stdout
3061
+ assert_equal ( expected , actual_stderr )
3058
3062
end
3059
3063
3060
3064
def test_duplicate_runtime_dependency
Original file line number Diff line number Diff line change @@ -47,9 +47,11 @@ def test_class_correct
47
47
assert_equal false , Gem ::Version . correct? ( "an incorrect version" )
48
48
49
49
expected = "nil versions are discouraged and will be deprecated in Rubygems 4\n "
50
- assert_output nil , expected do
50
+ actual_stdout , actual_stderr = capture_output do
51
51
Gem ::Version . correct? ( nil )
52
52
end
53
+ assert_empty actual_stdout
54
+ assert_equal ( expected , actual_stderr )
53
55
end
54
56
55
57
def test_class_new_subclass
You can’t perform that action at this time.
0 commit comments