summaryrefslogtreecommitdiff
path: root/spec/ruby/core/matchdata/shared/captures.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/matchdata/shared/captures.rb')
-rw-r--r--spec/ruby/core/matchdata/shared/captures.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/matchdata/shared/captures.rb b/spec/ruby/core/matchdata/shared/captures.rb
index 33f834561a..de5870f543 100644
--- a/spec/ruby/core/matchdata/shared/captures.rb
+++ b/spec/ruby/core/matchdata/shared/captures.rb
@@ -8,6 +8,6 @@ describe :matchdata_captures, shared: true do
it "returns instances of String when given a String subclass" do
str = MatchDataSpecs::MyString.new("THX1138: The Movie")
- /(.)(.)(\d+)(\d)/.match(str).send(@method).each { |c| c.should be_an_instance_of(String) }
+ /(.)(.)(\d+)(\d)/.match(str).send(@method).each { |c| c.should.instance_of?(String) }
end
end