summaryrefslogtreecommitdiff
path: root/spec/ruby/core/basicobject/not_spec.rb
blob: ca4cb6f5ffbd7a240f679c9fd7d3546cbf2450db (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../spec_helper'

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