Sha256: b23229a0c34f64d291b7247488e708e248e8071e51af4b7473f35fe812cab5e1
Contents?: true
Size: 353 Bytes
Versions: 5
Compression:
Stored size: 353 Bytes
Contents
require 'spec_helper' module Alf describe "Tools#coerce" do it 'should coerce integers without trouble' do Tools.coerce("12", Integer).should eql(12) end it 'should raise a Alf::CoercionError in case of error' do lambda{ Tools.coerce("abc", Integer) }.should raise_error(Alf::CoercionError) end end end
Version data entries
5 entries across 5 versions & 1 rubygems