Sha256: 040a303a9e672d137c46999947bb772a1dec0571e73c631ab7a867014550ccae
Contents?: true
Size: 395 Bytes
Versions: 31
Compression:
Stored size: 395 Bytes
Contents
require "spec_helper" describe Object do describe "blank?" do it "returns true for Objects perceived to be blank" do ["", false, nil, [], {}].each do |object| object.should be_blank end end it "returns false for every other Object" do ["!blank", true, [:a], {:a => "b"}].each do |object| object.should_not be_blank end end end end
Version data entries
31 entries across 31 versions & 7 rubygems