Browse files

Adjust spec descriptions for String#chomp, String#chomp!

"with" is not a correct word for current specs.
  • Loading branch information...
1 parent 5088b79 commit 01e73138e2326940e26873e6587fe293ba80e621 @kachick committed Dec 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/ruby/core/string/chomp_spec.rb
4 spec/ruby/core/string/chomp_spec.rb
@@ -1,7 +1,7 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
-describe "String#chomp with separator" do
+describe "String#chomp" do
it "returns a new string with the given record separator removed" do
"hello".chomp("llo").should == "he"
"hellollo".chomp("llo").should == "hello"
@@ -90,7 +90,7 @@
-describe "String#chomp! with separator" do
+describe "String#chomp!" do
it "modifies self in place and returns self" do
s = "one\n"
s.chomp!.should equal(s)

0 comments on commit 01e7313

Please sign in to comment.