I like "prevents" and found it obvious what it meant FWIW.

Sent from my iPhone

On Aug 4, 2013, at 7:04 AM, Xavier Shay <notifications@github.com> wrote:

> In spec/rspec/mocks/verifying_double_spec.rb:
> 
> > +  def self.respond_to?(method_name)
> > +    return true if method_name == :dynamic_class_method
> > +    super
> > +  end
> > +
> > +  def self.send
> > +    # fake out!
> > +  end
> > +
> > +  class Nested; end
> > +end
> > +
> > +module RSpec
> > +  module Mocks
> > +    describe 'verifying doubles' do
> > +      def prevents(&block)
> what it actually seems to be doing is stopping you from defining methods for stubs/expectations on doubles
> 
> ... which is exactly what "prevents" means.
> 
> I don't want to inline them, since this is a recurring high level concept. Name change is possible but I'm not convinced expect_mocking_error is better than prevents yet.
> 
> —
> Reply to this email directly or view it on GitHub.