@@ -79,8 +79,8 @@ def Warning.warn(msg)
79
79
Warning [ :deprecated ] = true
80
80
begin
81
81
-> {
82
- warn ( "foo" , category : :deprecated )
83
- } . should complain ( "foo\n " )
82
+ Warning . warn ( "foo" , category : :deprecated )
83
+ } . should complain ( "foo" )
84
84
ensure
85
85
Warning [ :deprecated ] = warn_deprecated
86
86
end
@@ -91,8 +91,8 @@ def Warning.warn(msg)
91
91
Warning [ :experimental ] = true
92
92
begin
93
93
-> {
94
- warn ( "foo" , category : :experimental )
95
- } . should complain ( "foo\n " )
94
+ Warning . warn ( "foo" , category : :experimental )
95
+ } . should complain ( "foo" )
96
96
ensure
97
97
Warning [ :experimental ] = warn_experimental
98
98
end
@@ -103,7 +103,7 @@ def Warning.warn(msg)
103
103
Warning [ :deprecated ] = false
104
104
begin
105
105
-> {
106
- warn ( "foo" , category : :deprecated )
106
+ Warning . warn ( "foo" , category : :deprecated )
107
107
} . should_not complain
108
108
ensure
109
109
Warning [ :deprecated ] = warn_deprecated
@@ -115,7 +115,7 @@ def Warning.warn(msg)
115
115
Warning [ :experimental ] = false
116
116
begin
117
117
-> {
118
- warn ( "foo" , category : :experimental )
118
+ Warning . warn ( "foo" , category : :experimental )
119
119
} . should_not complain
120
120
ensure
121
121
Warning [ :experimental ] = warn_experimental
0 commit comments