aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/test_case.rb
diff options
context:
space:
mode:
authorTara Scherner de la Fuente <tara.scherner@livingsocial.com>2016-02-18 21:21:24 -0800
committerTara Scherner de la Fuente <tara.scherner@livingsocial.com>2016-02-18 23:00:06 -0800
commitf672464faf733b68001d6ced711bb9119c3a6f7d (patch)
tree6760f97be754a9ac4fb8ce6e58f7389f4aaa3787 /activesupport/lib/active_support/test_case.rb
parentf391840c36c6a58ab69514b2745b54046b36d67e (diff)
downloadrails-f672464faf733b68001d6ced711bb9119c3a6f7d.tar.gz
rails-f672464faf733b68001d6ced711bb9119c3a6f7d.tar.bz2
rails-f672464faf733b68001d6ced711bb9119c3a6f7d.zip
better docs for ActiveSupport::TestCase#assert_nothing_raised
Diffstat (limited to 'activesupport/lib/active_support/test_case.rb')
-rw-r--r--activesupport/lib/active_support/test_case.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index d9a668c0ea..4dc84e4a59 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -66,10 +66,13 @@ module ActiveSupport
alias :assert_not_respond_to :refute_respond_to
alias :assert_not_same :refute_same
- # Reveals the intention that the block should not raise any exception.
+
+ # Assertion that the block should not raise an exception.
+ #
+ # Passes if evaluated code in the yielded block raises no exception.
#
# assert_nothing_raised do
- # ...
+ # perform_service(param: 'no_exception')
# end
def assert_nothing_raised(*args)
yield