Sha256: ab564643a7dca497f87fa833936563219261ab8ed1c0219620ea0116b8f26822
Contents?: true
Size: 357 Bytes
Versions: 28
Compression:
Stored size: 357 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe Symbol do describe "to_method_name" do if RUBY_VERSION =~ /^1.8/ it "should return a string" do :hello.to_method_name.should == 'hello' end else it "should return a symbol" do :hello.to_method_name.should == :hello end end end end
Version data entries
28 entries across 28 versions & 2 rubygems