On Wed, Sep 3, 2008 at 4:52 AM, Keith McDonnell <keith at dancingtext.com>
wrote:> Hi all,
>
> Are fixtures not loaded & instantiated in the before block? I thought
they
> /should/ be :) 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
> [@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
> #<Object>
> #<Object>
> #<Object>
>
> Is this a bug or expected behavior?
>
> Thanks,
>
> Keith
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>