summaryrefslogtreecommitdiff
path: root/spec/ruby/core/unboundmethod/public_spec.rb
blob: ae75e2601c67f7562b064ca697bc7e1b9430bf52 (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'
require_relative 'fixtures/classes'

describe "UnboundMethod#public?" do
  it "has been removed" do
    obj = UnboundMethodSpecs::Methods.new
    obj.method(:my_public_method).unbind.should_not.respond_to?(:public?)
  end
end