aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/basicobject/not_spec.rb
blob: f02b31edb2170a23d42f63db29ea751992d7ba0e (plain)
1
2
3
4
5
6
7
8
9
10
11
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