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: spec/cli/commands/dns_proxy_spec.rb
+6-20
Original file line number
Diff line number
Diff line change
@@ -124,16 +124,9 @@
124
124
let(:name){'/[abc/'}
125
125
126
126
it"must raise an OptionParser::InvalidArgument"do
127
-
# XXX: TruffleRuby's RegexpError exception message is different
128
-
ifRUBY_ENGINE == 'truffleruby'
129
-
expect{
130
-
subject.parse_record_name(name)
131
-
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class (org.joni.exception.SyntaxException): /[abc/")
132
-
else
133
-
expect{
134
-
subject.parse_record_name(name)
135
-
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class: /[abc/")
136
-
end
127
+
expect{
128
+
subject.parse_record_name(name)
129
+
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class: /[abc/")
137
130
end
138
131
end
139
132
end
@@ -196,16 +189,9 @@
196
189
let(:name){'/[abc/'}
197
190
198
191
it"must raise an OptionParser::InvalidArgument"do
199
-
# XXX: TruffleRuby's RegexpError exception message is different
200
-
ifRUBY_ENGINE == 'truffleruby'
201
-
expect{
202
-
subject.parse_rule(rule)
203
-
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class (org.joni.exception.SyntaxException): /[abc/")
204
-
else
205
-
expect{
206
-
subject.parse_rule(rule)
207
-
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class: /[abc/")
208
-
end
192
+
expect{
193
+
subject.parse_rule(rule)
194
+
}.toraise_error(OptionParser::InvalidArgument,"invalid argument: invalid Regexp: premature end of char-class: /[abc/")
0 commit comments