Sha256: 2e020417167278060f2cae826b855e7875a8d1d2398905ffbec0b5b9e58d55ef
Contents?: true
Size: 511 Bytes
Versions: 31
Compression:
Stored size: 511 Bytes
Contents
require 'lib/ramaze/spec/helper/snippets' describe 'constant' do it 'should load from string' do constant('Fixnum').should == Fixnum end it 'should load from symbol' do constant(:Fixnum).should == Fixnum end it 'should handle hierarchy' do constant('Math::PI').should == Math::PI end it 'should be callable with explicit self' do Math.constant('PI').should == Math::PI end it 'should be callable with explicit self' do Math.constant('::Math').should == Math end end
Version data entries
31 entries across 31 versions & 5 rubygems