aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-19 05:19:37 -0200
committerRafael França <rafaelmfranca@gmail.com>2016-02-19 05:19:37 -0200
commitaf572a69a75ef87f17b8d06bdc8a56f3a59d779a (patch)
tree6760f97be754a9ac4fb8ce6e58f7389f4aaa3787 /activesupport/lib
parentf391840c36c6a58ab69514b2745b54046b36d67e (diff)
parentf672464faf733b68001d6ced711bb9119c3a6f7d (diff)
downloadrails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.tar.gz
rails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.tar.bz2
rails-af572a69a75ef87f17b8d06bdc8a56f3a59d779a.zip
Merge pull request #23773 from wisetara/wisetara/update-docs-ActiveSupport__TestCase#assert_nothing_raised-for-pr
better docs for ActiveSupport::TestCase#assert_nothing_raised
Diffstat (limited to 'activesupport/lib')
-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