Sha256: 707a037ad29ceaa1e4e2756873822a39bba339ee9f02d33fe8661e80e1c2ce0b
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe Symbol do it 'should respond to the new methods' do Proc.new{ }.should respond_to(*%w(to_proc)) end it 'should return a Proc from to_proc' do :foo.to_proc.should be_a_kind_of(Proc) end it 'should properly to do to_proc' do 'abc'.map(&:upcase).first.should == 'ABC' [1,2,3,4].map(&:square).should == [1,4,9,16] end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
darkhelmet-darkext-0.12.0 | spec/symbol_spec.rb |
darkext-0.12.0 | spec/symbol_spec.rb |