On Mar 23, 3:02 ¨Βν¬ ΒςιαΓαξδμεΌβ®γαξδ®®®ΐποβοψ®γονχςοτεΊ
> Luke St.Clair wrote:
> > Is there some way to:
> > 1) set a global variable in the "parent" test suite that the children
> > see?  ¨Βεενσ μιλε τθαξσχες το τθισ ισ ξο
>
> Shoulda sits on top of Test::Unit and may be helpful. Something like
> this:
>
> class MyTest < Test::Unit::TestCase
> context "top level" do
> setup do
> @stuff = ...
> end
>
> should "test something at top level" do
> assert_equal 123, @stuff.size
> end
>
> context "inner level" do
> setup do
> @more_stuff = ...
> end
>
> should "test more" do
> assert_equal @stuff.size, @more_stuff.size
> end
> end
> end
> end


This seems incredibly useful - unfortunately, I can't use shoulda.