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:
parent
9619450468
commit
39691ba2f5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue