File tree Expand file tree Collapse file tree 5 files changed +30
-20
lines changed
spec/ruby/library/stringscanner Expand file tree Collapse file tree 5 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 1313 @s . check_until ( /test/ ) . should == "This is a test"
1414 end
1515
16- it "raises TypeError if given a String" do
17- -> {
18- @s . check_until ( 'T' )
19- } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
16+ ruby_version_is "" ..."3.4" do
17+ it "raises TypeError if given a String" do
18+ -> {
19+ @s . check_until ( 'T' )
20+ } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
21+ end
2022 end
2123end
Original file line number Diff line number Diff line change 2222 @s . exist? ( /i/ ) . should == nil
2323 end
2424
25- it "raises TypeError if given a String" do
26- -> {
27- @s . exist? ( 'T' )
28- } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
25+ ruby_version_is "" ..."3.4" do
26+ it "raises TypeError if given a String" do
27+ -> {
28+ @s . exist? ( 'T' )
29+ } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
30+ end
2931 end
3032end
Original file line number Diff line number Diff line change 2121 @s . scan_until ( /^h/ ) . should == "h"
2222 end
2323
24- it "raises TypeError if given a String" do
25- -> {
26- @s . scan_until ( 'T' )
27- } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
24+ ruby_version_is "" ..."3.4" do
25+ it "raises TypeError if given a String" do
26+ -> {
27+ @s . scan_until ( 'T' )
28+ } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
29+ end
2830 end
2931end
Original file line number Diff line number Diff line change 2828 @s . pos . should == 4
2929 end
3030
31- it "raises TypeError if given a String" do
32- -> {
33- @s . search_full ( 'T' , true , true )
34- } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
31+ ruby_version_is "" ..."3.4" do
32+ it "raises TypeError if given a String" do
33+ -> {
34+ @s . search_full ( 'T' , true , true )
35+ } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
36+ end
3537 end
3638end
Original file line number Diff line number Diff line change 1616 @s . skip_until ( /d+/ ) . should == nil
1717 end
1818
19- it "raises TypeError if given a String" do
20- -> {
21- @s . skip_until ( 'T' )
22- } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
19+ ruby_version_is "" ..."3.4" do
20+ it "raises TypeError if given a String" do
21+ -> {
22+ @s . skip_until ( 'T' )
23+ } . should raise_error ( TypeError , 'wrong argument type String (expected Regexp)' )
24+ end
2325 end
2426end
You can’t perform that action at this time.
0 commit comments