Sha256: a2f1bbfae8d68785ef8d5e869e1fea14f2f947567bc01ae9084dee893b017841
Contents?: true
Size: 400 Bytes
Versions: 5
Compression:
Stored size: 400 Bytes
Contents
require 'spec_helper' describe NilClass do describe "#to_yes_no" do it 'converts correctly with no options' do nil.to_yes_no.should == "" end it 'converts correctly with if_nil option' do nil.to_yes_no(:if_nil => "Unspecified") == "Unspecified" end end describe "#not_nil?" do it 'works' do nil.not_nil?.should == false end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
corelib-0.0.6 | spec/nil/core_spec.rb |
corelib-0.0.5 | spec/nil/core_spec.rb |
corelib-0.0.4 | spec/nil/core_spec.rb |
corelib-0.0.3 | spec/nil/core_spec.rb |
corelib-0.0.2 | spec/nil/core_spec.rb |