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

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