Skip to content

Commit 00f2fc7

Browse files
committed
Remove unused spec method
1 parent 3ed769c commit 00f2fc7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

spec/regexp-examples_spec_2.4.1.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
RSpec.describe Regexp, '#examples' do
2-
def self.examples_raise_illegal_syntax_error(*regexps)
3-
regexps.each do |regexp|
4-
it "examples for /#{regexp.source}/" do
5-
expect { regexp.examples }.to raise_error RegexpExamples::IllegalSyntaxError
6-
end
7-
end
8-
end
92
context 'absent operator' do
103
it 'treats the group as an empty match' do
114
expect(/abc(?~def)ghi/.examples).to eq(['abcghi'])

0 commit comments

Comments
 (0)