Permalink
Browse files

Fix syntax error in rdocs.

Ruby assumes curly braces in foo {} as a block, for hash we need to put parentheses or omit braces
  • Loading branch information...
semaperepelitsa committed Dec 19, 2011
1 parent ff15c87 commit 2aedb202c1c06011b5cb1715a6c76bf0104b287f
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/testing/assertions.rb
@@ -87,7 +87,7 @@ def assert_blank(object, message=nil)
# 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

0 comments on commit 2aedb20

Please sign in to comment.