…lock. - Closes #615.
* Fix specs. The `should_receive(:message).with(/.../)` wasn't working as expected...it passed even if the message text didn't match the regex. I figured out that it was because of the fact that the error was being raised within the example-under-test, which already had two errors and was simply printing (or, previously, silencing) the extra error. The solution is to capture the reported message using a stub implementation, and then assert on it after running the example. * The added context ("in an after hook") for 2nd errors happening in an after hook wasn't being included in the printed message. This is fixed now.
Fixes cuke broken by 43ec3a8 caused by reformatting a file, which accidentally re-indented a HERE doc.
Also did some minor refactoring in order to be able to use Yard to document internal-DSL-generated methods like `it`, `example`, and `specify`.
- Provides support for rspec/rspec-rails#391. - Also refactored the hooks infrastructure such that most of the work is done within the hooks module rather than spreading it out across its different consumers.
…if :pending => true) - defaults to 'No reason given' if :pending => true - change default pending message to 'No reason given' - assign 'Not yet implemented' when no block passed to example (a.k.a. it/specify) - Closes #540
…ing describes for now)
…hods (more descriptive) - also add more rdoc
…nd metadata. This reverts commit 1680d32. The problem was world was checking example.any_apply? which also checks its example group. By going directly to the example's metadata.any_apply?, we avoid checking the example group and all is right with the world.
…oup, example, and metadata." This reverts commit bad6adc.
…ata. This restores 13f6889 with small adjustment that is necessary for some versions of Ruby, but not all :)
…ta." This reverts commit da80d2e, which introduced failures in some rubies, but not all (so I didn't notice them).