Skip to content

Commit 95f08f2

Browse files
committed
Skip failing examples related with d81b058
1 parent c011686 commit 95f08f2

File tree

5 files changed

+30
-20
lines changed

5 files changed

+30
-20
lines changed

spec/ruby/library/stringscanner/check_until_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
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
2123
end

spec/ruby/library/stringscanner/exist_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
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
3032
end

spec/ruby/library/stringscanner/scan_until_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
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
2931
end

spec/ruby/library/stringscanner/search_full_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
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
3638
end

spec/ruby/library/stringscanner/skip_until_spec.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
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
2426
end

0 commit comments

Comments
 (0)