aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-12-20 22:18:42 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-12-20 22:18:42 +0530
commit500ca98fef7a8cc20f1f8f5835091e1f119e0d8a (patch)
tree8828b963fb2724d12ffbe764218def981e01ddb3 /activesupport
parent4fa615a8661eb13d4bd8a7de4d839e9883ef26ec (diff)
parente52786c361fd3828872089a8e70f690493f331b2 (diff)
downloadrails-500ca98fef7a8cc20f1f8f5835091e1f119e0d8a.tar.gz
rails-500ca98fef7a8cc20f1f8f5835091e1f119e0d8a.tar.bz2
rails-500ca98fef7a8cc20f1f8f5835091e1f119e0d8a.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/testing/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/assertions.rb b/activesupport/lib/active_support/testing/assertions.rb
index f3629ada5b..4e1a58a801 100644
--- a/activesupport/lib/active_support/testing/assertions.rb
+++ b/activesupport/lib/active_support/testing/assertions.rb
@@ -87,7 +87,7 @@ module ActiveSupport
# Test if an expression is not blank. Passes if object.present? is true.
#
- # assert_present {:data => 'x' } # => true
+ # assert_present({:data => 'x' }) # => true
def assert_present(object, message=nil)
message ||= "#{object.inspect} is blank"
assert object.present?, message