summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/format_spec.rb
blob: e8b031e480146575c4c965fcdab1e2c4ba0a2613 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
  end
end

describe "Kernel.format" do
  it "is accessible as a module function" do
    Kernel.format("%s", "hello").should == "hello"
  end
end