summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/format_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/format_spec.rb')
-rw-r--r--spec/ruby/core/kernel/format_spec.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/ruby/core/kernel/format_spec.rb b/spec/ruby/core/kernel/format_spec.rb
index e8b031e480..a311f3c3d7 100644
--- a/spec/ruby/core/kernel/format_spec.rb
+++ b/spec/ruby/core/kernel/format_spec.rb
@@ -1,15 +1,13 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
-# NOTE: most specs are in sprintf_spec.rb, this is just an alias
describe "Kernel#format" do
- it "is a private method" do
- Kernel.should have_private_instance_method(:format)
+ it "is an alias of Kernel#sprintf" do
+ Kernel.instance_method(:format).should == Kernel.instance_method(:sprintf)
end
end
describe "Kernel.format" do
- it "is accessible as a module function" do
- Kernel.format("%s", "hello").should == "hello"
+ it "is an alias of Kernel.sprintf" do
+ Kernel.method(:format).should == Kernel.method(:sprintf)
end
end