aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-08-29 15:24:36 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-08-29 15:24:36 -0700
commit39691ba2f5664aa83720fa3c2a1ca14937d29009 (patch)
tree706329779c9bb60ecda4349c036dfcdf25649ead /activesupport
parent961945046848492ddc541700419cf553e7817c94 (diff)
downloadrails-39691ba2f5664aa83720fa3c2a1ca14937d29009.tar.gz
rails-39691ba2f5664aa83720fa3c2a1ca14937d29009.tar.bz2
rails-39691ba2f5664aa83720fa3c2a1ca14937d29009.zip
Clarify the origin of this great addition to Rails :trollface: :trollface :trollface:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/core_ext/object/blank_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/blank_test.rb b/activesupport/test/core_ext/object/blank_test.rb
index 34d10c6981..4deac4b0aa 100644
--- a/activesupport/test/core_ext/object/blank_test.rb
+++ b/activesupport/test/core_ext/object/blank_test.rb
@@ -35,7 +35,7 @@ class BlankTest < ActiveSupport::TestCase
end
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"
end
end