diff options
Diffstat (limited to 'spec/ruby/core/matchdata/names_spec.rb')
| -rw-r--r-- | spec/ruby/core/matchdata/names_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/matchdata/names_spec.rb b/spec/ruby/core/matchdata/names_spec.rb index e298c85593..dca15985b0 100644 --- a/spec/ruby/core/matchdata/names_spec.rb +++ b/spec/ruby/core/matchdata/names_spec.rb @@ -1,14 +1,14 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' describe "MatchData#names" do it "returns an Array" do md = 'haystack'.match(/(?<yellow>hay)/) - md.names.should be_an_instance_of(Array) + md.names.should.instance_of?(Array) end it "sets each element to a String" do 'haystack'.match(/(?<yellow>hay)/).names.all? do |e| - e.should be_an_instance_of(String) + e.should.instance_of?(String) end end |
