summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/search_full_spec.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2024-09-17 15:44:18 +0900
committerHiroshi SHIBATA <[email protected]>2024-09-17 15:44:18 +0900
commit95f08f2b7fcbad889e4aef7aa941da3da3e8e74b (patch)
treef4736fd5dfd1a0a04600dbee35cd90932b97397f /spec/ruby/library/stringscanner/search_full_spec.rb
parentc0116860ba2e1d3efed71de35942f0ac298bc8e6 (diff)
Skip failing examples related with https://github.com/ruby/ruby/commit/d81b0588bb3c97167d1f7e2d2a74185e0c19b68c
Diffstat (limited to 'spec/ruby/library/stringscanner/search_full_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/search_full_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/spec/ruby/library/stringscanner/search_full_spec.rb b/spec/ruby/library/stringscanner/search_full_spec.rb
index 7d2a714fa5..713ab00d22 100644
--- a/spec/ruby/library/stringscanner/search_full_spec.rb
+++ b/spec/ruby/library/stringscanner/search_full_spec.rb
@@ -28,9 +28,11 @@ describe "StringScanner#search_full" do
@s.pos.should == 4
end
- it "raises TypeError if given a String" do
- -> {
- @s.search_full('T', true, true)
- }.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
+ ruby_version_is ""..."3.4" do
+ it "raises TypeError if given a String" do
+ -> {
+ @s.search_full('T', true, true)
+ }.should raise_error(TypeError, 'wrong argument type String (expected Regexp)')
+ end
end
end