Fixture instantiated in before block?

Hi all,

Are fixtures not loaded & instantiated in the before block? I thought
they /should/ be :slight_smile: eg

before(:all) do
[@matt_applying_for_it, @matt, @it_industry].each { |v| puts
v.inspect }
end

it “should …” do
[@matt_applying_for_it, @matt, @it_industry].each { |v| puts
v.inspect }
end

=>
nil
nil
nil
#
#
#

Is this a bug or expected behavior?

Thanks,

Keith

On Wed, Sep 3, 2008 at 4:52 AM, Keith McDonnell [email protected]
wrote:

Hi all,

Are fixtures not loaded & instantiated in the before block? I thought they
/should/ be :slight_smile: eg

before(:all) do

Try before(:each) instead.

Read the warning at the bottom of
http://rspec.info/documentation/before_and_after.html.

Cheers,
David