Created
May 17, 2011 13:24
-
-
Save jamescook/976457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe Object do | |
describe "#blank?" do | |
- it "should return true for blank objects" do | |
- [nil, false, [], {}].each { |object| object.should be_blank } | |
+ [nil, false, [], {}].each do |blanky| | |
+ it %Q{should return true for '#{blanky.inspect}' objects} do | |
+ blanky.blank?.should be_true | |
+ end | |
end | |
it "should return false for non-blank objects" do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment