Sha256: 5127798a2381624ffda54223814b484d77c1ac9e94523fd223b8aafa5bf1ad38
Contents?: true
Size: 359 Bytes
Versions: 28
Compression:
Stored size: 359 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe String 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