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 contexts inside examples.
This should work:
describe "a" do
def go; end
context "b" do
it "should access go" do
go
end
end
end
HTH,
David
> go
> end
> end
>
> end
>
> This surprised me a bit, making re-use of outer methods unavailable.
> Is it expected?
>
> Thanks!
> -r
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users