@private Validates the provided matcher to ensure it supports block expectations, in order to avoid user confusion when they use a block thinking the expectation will be on the return value of the block rather than the block itself.
# File lib/rspec/expectations/expectation_target.rb, line 90 def not_to(matcher, message=nil, &block) enforce_block_expectation(matcher) super end
Generated with the Darkfish Rdoc Generator 2.