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

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