summaryrefslogtreecommitdiff
path: root/spec/ruby/core/method/protected_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/method/protected_spec.rb')
-rw-r--r--spec/ruby/core/method/protected_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/method/protected_spec.rb b/spec/ruby/core/method/protected_spec.rb
new file mode 100644
index 0000000000..f9e422ae3d
--- /dev/null
+++ b/spec/ruby/core/method/protected_spec.rb
@@ -0,0 +1,9 @@
+require_relative '../../spec_helper'
+require_relative 'fixtures/classes'
+
+describe "Method#protected?" do
+ it "has been removed" do
+ obj = MethodSpecs::Methods.new
+ obj.method(:my_protected_method).should_not.respond_to?(:protected?)
+ end
+end