#621 √ resolved
Joseph Wilk

pending_module_spec has misleading pending include

Reported by Joseph Wilk | December 3rd, 2008 @ 05:07 PM | in Maintenance

I was doing some digging in rspecs source to see if I could learn anything on how to create pending in Cucumber.

I notice that some of the specs in pending_module_spec were misleading. For example:


      it 'should raise an ExamplePendingError if no block is supplied' do
        lambda {
          include Pending
          pending "TODO"
        }.should raise_error(ExamplePendingError, /TODO/)
      end

Within the context of lamda 'include' resolves to the Spec::Matchers::Include ( [1,2,3].should include(3) ) and not the module include.

The pending method is already defined through Rspec's ExampleGroups.

I've included a patch which just removes the offending includes.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Behaviour Driven Development for Ruby.

Shared Ticket Bins

People watching this ticket