summaryrefslogtreecommitdiff
path: root/spec/rubyspec/core/unboundmethod/name_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/core/unboundmethod/name_spec.rb')
-rw-r--r--spec/rubyspec/core/unboundmethod/name_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/rubyspec/core/unboundmethod/name_spec.rb b/spec/rubyspec/core/unboundmethod/name_spec.rb
deleted file mode 100644
index c4602d529a..0000000000
--- a/spec/rubyspec/core/unboundmethod/name_spec.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
-
-describe "UnboundMethod#name" do
- it "returns the name of the method" do
- String.instance_method(:upcase).name.should == :upcase
- end
-
- it "returns the name even when aliased" do
- obj = UnboundMethodSpecs::Methods.new
- obj.method(:foo).unbind.name.should == :foo
- obj.method(:bar).unbind.name.should == :bar
- UnboundMethodSpecs::Methods.instance_method(:bar).name.should == :bar
- end
-end