spec/parser/all_spec.rb in regexp_parser-2.0.3 vs spec/parser/all_spec.rb in regexp_parser-2.1.0
- old
+ new
@@ -32,12 +32,12 @@
expect(root[3]).to be_a(Group::Capture)
expect(root[3]).to be_quantified
end
specify('parse no quantifier target raises error') do
- expect { RP.parse('?abc') }.to raise_error(ArgumentError)
+ expect { RP.parse('?abc') }.to raise_error(Regexp::Parser::Error)
end
specify('parse sequence no quantifier target raises error') do
- expect { RP.parse('abc|?def') }.to raise_error(ArgumentError)
+ expect { RP.parse('abc|?def') }.to raise_error(Regexp::Parser::Error)
end
end