There was an error while loading. Please reload this page.
1 parent 3ed769c commit 00f2fc7Copy full SHA for 00f2fc7
spec/regexp-examples_spec_2.4.1.rb
@@ -1,11 +1,4 @@
1
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
8
9
context 'absent operator' do
10
it 'treats the group as an empty match' do
11
expect(/abc(?~def)ghi/.examples).to eq(['abcghi'])
0 commit comments