diff options
Diffstat (limited to 'spec/ruby/core/kernel/format_spec.rb')
-rw-r--r-- | spec/ruby/core/kernel/format_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/ruby/core/kernel/format_spec.rb b/spec/ruby/core/kernel/format_spec.rb new file mode 100644 index 0000000000..c73d5f0efb --- /dev/null +++ b/spec/ruby/core/kernel/format_spec.rb @@ -0,0 +1,14 @@ +require File.expand_path('../../../spec_helper', __FILE__) +require File.expand_path('../fixtures/classes', __FILE__) + +describe "Kernel#format" do + it "is a private method" do + Kernel.should have_private_instance_method(:format) + end +end + +describe "Kernel.format" do + it "is accessible as a module function" do + Kernel.format("%s", "hello").should == "hello" + end +end |