Sha256: 4cbd773999d11a25a52706034b77f121f6413506975aa2056b63bd6865a73f64

Contents?: true

Size: 191 Bytes

Versions: 4

Compression:

Stored size: 191 Bytes

Contents

RSpec.describe Regexp, '#examples' do
  context 'absent operator' do
    it 'treats the group as an empty match' do
      expect(/abc(?~def)ghi/.examples).to eq(['abcghi'])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
regexp-examples-1.5.1 spec/regexp-examples_spec_2.4.1.rb
regexp-examples-1.5.0 spec/regexp-examples_spec_2.4.1.rb
regexp-examples-1.4.4 spec/regexp-examples_spec_2.4.1.rb
regexp-examples-1.4.3 spec/regexp-examples_spec_2.4.1.rb