> 
> On Thu, Apr 22, 2010 at 7:11 PM, John Dell <spov...@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
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to