Sha256: 8b07a1219ab7191d7502a3d07f7b90ae8ecdf0c746819e162b1545d4becd329a
Contents?: true
Size: 637 Bytes
Versions: 83
Compression:
Stored size: 637 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "UnboundMethod#name" do ruby_version_is '1.8.7' 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 end
Version data entries
83 entries across 83 versions & 1 rubygems