Skip to content

Commit

Permalink
rdoc - add note about pending + before
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 11, 2011
1 parent b624a00 commit 59602fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/rspec/core/pending.rb
Expand Up @@ -46,6 +46,15 @@ class PendingDeclaredInExample < StandardError; end
# end
# end
# end
#
# @note `before(:each)` hooks are eval'd when you use the `pending`
# method within an example. If you want to declare an example `pending`
# and bypass the `before` hooks as well, you can pass `:pending => true`
# to the `it` method:
#
# it "does something", :pending => true do
# # ...
# end
def pending(*args)
return self.class.before(:each) { pending(*args) } unless example

Expand Down

0 comments on commit 59602fa

Please sign in to comment.