Sha256: 9b2f85d203f4ff3fb716edb18c71acd77c89ed1b6a6d904e6837bdc98037f5b6
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require 'spec_helper' describe String do it 'should decapitalize' do 'Sweet String'.decapitalize.should eq 'sweet String' end it 'should parse true booleans' do "true".to_bool.should be_true "t".to_bool.should be_true "yes".to_bool.should be_true "y".to_bool.should be_true "1".to_bool.should be_true end it 'should parse false booleans' do nil.to_s.to_bool.should be_false "".to_bool.should be_false "false".to_bool.should be_false "f".to_bool.should be_false "no".to_bool.should be_false "n".to_bool.should be_false "0".to_bool.should be_false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bootstripe-0.2.17 | spec/string_additions_spec.rb |
bootstripe-0.2.16 | spec/string_additions_spec.rb |
bootstripe-0.2.15 | spec/string_additions_spec.rb |