From 2aedb202c1c06011b5cb1715a6c76bf0104b287f Mon Sep 17 00:00:00 2001 From: Semyon Perepelitsa Date: Tue, 20 Dec 2011 01:35:43 +0800 Subject: Fix syntax error in rdocs. Ruby assumes curly braces in foo {} as a block, for hash we need to put parentheses or omit braces --- activesupport/lib/active_support/testing/assertions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') 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 -- cgit v1.2.3