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 :) 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

>  [EMAIL PROTECTED], @matt, @it_industry].each { |v| puts v.inspect }
> end
>
> it "should ..." do
>  [EMAIL PROTECTED], @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@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to