Sha256: f729dd05fa372a4d9c04c561fc5348b191d6448c60a4671e2239c86a05105e3c
Contents?: true
Size: 310 Bytes
Versions: 8
Compression:
Stored size: 310 Bytes
Contents
require File.join(File.dirname(__FILE__), 'spec_helper') describe "blank?" do it "should mark empty objects as blank" do [ nil, false, '', ' ', " \n\t \r ", [], {} ].each { |f| f.should be_blank } [ Object.new, true, 0, 1, 'a', [nil], { nil => 0 } ].each { |t| t.should_not be_blank } end end
Version data entries
8 entries across 8 versions & 1 rubygems