[rspec-users] rspec2 - set example as pending?

David Chelimsky dchelimsky at gmail.com
Thu Apr 22 18:27:28 EDT 2010


> 
> On Thu, Apr 22, 2010 at 7:11 PM, John Dell <spovich at gmail.com> wrote:
>> I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting:
>> 
>> Failure/Error: pending
>> undefined local variable or method `pending' for
>> #<Rspec::Core::ExampleGroup::Nested_1:0x10a737c50 @__memoized={}>
>> 
>> Is 'pending' pending for rspec2? ;-)
>> 
>> Thanks,
>> John

On Apr 22, 2010, at 5:19 PM, Nicolás Sanguinetti wrote:

> Yeah, just that now you define your entire example as pending. So instead of:
> 
> it "does something" do
>  pending
>  this_will_fail
> end
> 
> You now do
> 
> pending "does something" do
>  this_will_fail
> end
> 
> Cheers

That's true as of 2.0.0.beta.7, but the next beta will support both forms:

pending "example" do
  ...
end

AND

it "does something" do
  pending
end

See http://github.com/rspec/rspec-core/issues/closed#issue/7

Cheers,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100422/d75ba5e2/attachment.html>


More information about the rspec-users mailing list