Rspec2 - set example as pending?

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? :wink:

Thanks,
John

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

2010/4/22 Nicolás Sanguinetti [email protected]

Yeah, just that now you define your entire example as pending. So instead
of:

You now do

pending “does something” do
this_will_fail
end

Thank you! I like it, very clean.

Is that documented somehwere? I couldn’t find it.

John

Thanks,
John

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs