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

Version Path
dragonfly-0.8.6 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.8.5 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.8.4 spec/dragonfly/core_ext/symbol_spec.rb
fog-dragonfly-0.8.2 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.8.2 spec/dragonfly/core_ext/symbol_spec.rb
fog-dragonfly-0.8.1 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.8.1 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.8.0 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.7 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.6 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.5 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.4 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.3 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.2 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.1 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.7.0 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.6.2 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.6.1 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.6.0 spec/dragonfly/core_ext/symbol_spec.rb
dragonfly-0.5.7 spec/dragonfly/core_ext/symbol_spec.rb