aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/testing
diff options
context:
space:
mode:
authorSemyon Perepelitsa <sema@sema.in>2011-12-20 01:35:43 +0800
committerSemyon Perepelitsa <sema@sema.in>2011-12-20 01:35:43 +0800
commit2aedb202c1c06011b5cb1715a6c76bf0104b287f (patch)
treedc9d98778a70c634ec3ed00648190d199f05ed66 /activesupport/lib/active_support/testing
parentff15c87ab9cd0046bc2010fe3227f2e86e1f05d7 (diff)
downloadrails-2aedb202c1c06011b5cb1715a6c76bf0104b287f.tar.gz
rails-2aedb202c1c06011b5cb1715a6c76bf0104b287f.tar.bz2
rails-2aedb202c1c06011b5cb1715a6c76bf0104b287f.zip
Fix syntax error in rdocs.
Ruby assumes curly braces in foo {} as a block, for hash we need to put parentheses or omit braces
Diffstat (limited to 'activesupport/lib/active_support/testing')
-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