1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Clarify the origin of this great addition to Rails :trollface: :trollface :trollface:

This commit is contained in:
David Heinemeier Hansson 2014-08-29 15:24:36 -07:00
parent 9619450468
commit 39691ba2f5

View file

@ -35,7 +35,7 @@ class BlankTest < ActiveSupport::TestCase
end end
def test_presence_with_a_block def test_presence_with_a_block
assert_equal "SALLY", "sally".presence { upcase } || "Nobody" assert_equal "THIS WAS TENDERLOVE'S IDEA", "this was tenderlove's idea".presence { upcase } || "Nobody"
assert_equal "Nobody", nil.presence { upcase } || "Nobody" assert_equal "Nobody", nil.presence { upcase } || "Nobody"
end end
end end