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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100422/9dd45d53/attachment.html>
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 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 > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
> > 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, >> JohnOn 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 > > CheersThat''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>
2010/4/22 Nicol?s Sanguinetti <godfoca at gmail.com>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100422/deee57fa/attachment.html>