[rspec-users] methods not available...

rogerdpack rogerpack2005 at gmail.com
Tue Jul 20 14:07:43 EDT 2010


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 unavailable.
Is it expected?

Thanks!
-r


More information about the rspec-users mailing list