Sha256: 32e6edabb34ac8ca2c17332eea1eaded9ad3a3bdaac1113cc3a48aadf0aff781
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
require 'helper' [ { :object => nil, :description => :nil }, { :object => [], :description => 'Empty array' }, { :object => {}, :description => 'Empty hash' }, { :object => '', :description => 'Empty string' }, { :object => ' ', :description => 'Whitespace string' }, { :object => false, :description => :false } ].each do |item| describe item[:description] do it "should be blank?" do item[:object].blank?.should == true end it "should not be present?" do item[:object].present?.should == false end end end
Version data entries
6 entries across 6 versions & 1 rubygems