You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/erb/new_spec.rb
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -139,17 +139,19 @@
139
139
->{ERB.new("<%= list %>").result}.shouldraise_error(NameError)
140
140
end
141
141
142
-
describe"warning about arguments"do
143
-
it"warns when passed safe_level and later arguments"do
144
-
->{
145
-
ERB.new(@eruby_str,nil,'%')
146
-
}.shouldcomplain(/warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments./)
147
-
end
148
-
149
-
it"does not warn when passed arguments as keyword argument"do
150
-
->{
151
-
ERB.new(@eruby_str,trim_mode: '%')
152
-
}.should_notcomplain(/warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments./)
142
+
version_isERB::VERSION,""..."5.1.3"do# TODO: bump 5.1.3 to 6.0.0 once released
143
+
describe"warning about arguments"do
144
+
it"warns when passed safe_level and later arguments"do
145
+
->{
146
+
ERB.new(@eruby_str,nil,'%')
147
+
}.shouldcomplain(/warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments./)
148
+
end
149
+
150
+
it"does not warn when passed arguments as keyword argument"do
151
+
->{
152
+
ERB.new(@eruby_str,trim_mode: '%')
153
+
}.should_notcomplain(/warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments./)
0 commit comments