mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
12 lines
263 B
Ruby
12 lines
263 B
Ruby
|
require File.expand_path('../../../spec_helper', __FILE__)
|
||
|
|
||
|
describe "BasicObject#!" do
|
||
|
it "is a public instance method" do
|
||
|
BasicObject.should have_public_instance_method(:'!')
|
||
|
end
|
||
|
|
||
|
it "returns false" do
|
||
|
(!BasicObject.new).should be_false
|
||
|
end
|
||
|
end
|