diff options
Diffstat (limited to 'spec/ruby/core/string/chars_spec.rb')
-rw-r--r-- | spec/ruby/core/string/chars_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/ruby/core/string/chars_spec.rb b/spec/ruby/core/string/chars_spec.rb index 54876f9f9d..e4f26bc0cc 100644 --- a/spec/ruby/core/string/chars_spec.rb +++ b/spec/ruby/core/string/chars_spec.rb @@ -5,7 +5,6 @@ describe "String#chars" do it_behaves_like :string_chars, :chars it "returns an array when no block given" do - ary = "hello".send(@method) - ary.should == ['h', 'e', 'l', 'l', 'o'] + "hello".chars.should == ['h', 'e', 'l', 'l', 'o'] end end |