Re: [rspec-users] methods not available...

2010-07-20 Thread rogerdpack
> >  it "should pass again" do > >   context "a::b" do > > You can't wrap contexts inside examples. Cool thanks for the reply. The confusing part is that it allowed me to have that context within an example. Maybe a more explicit failure for newbies when they do this would be kind. -r __

Re: [rspec-users] methods not available...

2010-07-20 Thread David Chelimsky
On Jul 20, 2010, at 1:07 PM, rogerdpack wrote: > Hi all. Noticed that with rspec 1.x > > methods at "higher levels" aren't available in lower, ex: > > context "a" do > def go > end > > it "should pass" do >go > end > > it "should pass again" do > context "a::b" do You can't wrap conte

[rspec-users] methods not available...

2010-07-20 Thread rogerdpack
Hi all. Noticed that with rspec 1.x methods at "higher levels" aren't available in lower, ex: context "a" do def go end it "should pass" do go end it "should pass again" do context "a::b" do go end end end This surprised me a bit, making re-use of outer methods unavail