summaryrefslogtreecommitdiff
path: root/spec/ruby/core/string/allocate_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/string/allocate_spec.rb')
-rw-r--r--spec/ruby/core/string/allocate_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/string/allocate_spec.rb b/spec/ruby/core/string/allocate_spec.rb
index 5b36b4fd05..30d5f60594 100644
--- a/spec/ruby/core/string/allocate_spec.rb
+++ b/spec/ruby/core/string/allocate_spec.rb
@@ -14,6 +14,6 @@ describe "String.allocate" do
end
it "returns a binary String" do
- String.new.encoding.should == Encoding::BINARY
+ String.allocate.encoding.should == Encoding::BINARY
end
end