mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
11 lines
299 B
Ruby
11 lines
299 B
Ruby
![]() |
require File.expand_path('../../../spec_helper', __FILE__)
|
||
|
require File.expand_path('../fixtures/classes', __FILE__)
|
||
|
|
||
|
describe "Kernel#itself" do
|
||
|
it "returns the receiver itself" do
|
||
|
foo = Object.new
|
||
|
foo.itself.should equal foo
|
||
|
foo.itself.object_id.should equal foo.object_id
|
||
|
end
|
||
|
end
|