Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

rdoc tweaks for #579

  • Loading branch information...
commit d46c857cfbc898b0a0fe153cce70ff20c0ce595b 1 parent 76899a6
@dchelimsky dchelimsky authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 lib/rspec/core/hooks.rb
View
12 lib/rspec/core/hooks.rb
@@ -247,11 +247,10 @@ def append_before(*args, &block)
alias_method :before, :append_before
- # Registers a block to be executed before all other before blocks of the same scope.
- # This method prepends +block+ to existing before blocks.
+ # Adds `block` to the front of the list of `before` blocks in the same
+ # scope (`:each`, `:all`, or `:suite`).
#
# See #before for scoping semantics.
- #
def prepend_before(*args, &block)
scope, options = scope_and_options_from(*args)
hooks[:before][scope].unshift(BeforeHook.new(options, &block))
@@ -312,16 +311,15 @@ def prepend_after(*args, &block)
alias_method :after, :prepend_after
- # Registers a block to be executed after each example.
- # This method appends +block+ to existing after blocks.
+ # Adds `block` to the back of the list of `after` blocks in the same
+ # scope (`:each`, `:all`, or `:suite`).
#
+ # See #after for scoping semantics.
def append_after(*args, &block)
scope, options = scope_and_options_from(*args)
hooks[:after][scope] << AfterHook.new(options, &block)
end
-
-
# @api public
# @overload around(&block)
# @overload around(scope, &block)

0 comments on commit d46c857

Please sign in to comment.
Something went wrong with that request. Please try again.