aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-02-24 12:32:16 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-02-24 14:17:47 +0100
commitd61baee52adcd1baebe15f1065a0805857571f19 (patch)
tree58243df5f868fec6c8f69b3a6a5b2a85d54ab944 /activesupport/test/core_ext/object
parent3007c297d35c4742b9267b31adb5ff7a19e9cda6 (diff)
downloadrails-d61baee52adcd1baebe15f1065a0805857571f19.tar.gz
rails-d61baee52adcd1baebe15f1065a0805857571f19.tar.bz2
rails-d61baee52adcd1baebe15f1065a0805857571f19.zip
Go with #presence_in instead of #present_in -- it doesnt sound quite as good, but the closer relationship to #presence over #present is ultimately worth it
Diffstat (limited to 'activesupport/test/core_ext/object')
-rw-r--r--activesupport/test/core_ext/object/inclusion_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/object/inclusion_test.rb b/activesupport/test/core_ext/object/inclusion_test.rb
index c5e2cc693a..b054a8dd31 100644
--- a/activesupport/test/core_ext/object/inclusion_test.rb
+++ b/activesupport/test/core_ext/object/inclusion_test.rb
@@ -48,8 +48,8 @@ class InTest < ActiveSupport::TestCase
assert_raise(ArgumentError) { 1.in?(1) }
end
- def test_present_in
- assert_equal "stuff", "stuff".present_in(%w( lots of stuff ))
- assert_nil "stuff".present_in(%w( lots of crap ))
+ def test_presence_in
+ assert_equal "stuff", "stuff".presence_in(%w( lots of stuff ))
+ assert_nil "stuff".presence_in(%w( lots of crap ))
end
end