fixtures not available in config.before #320

Closed
jpalermo opened this Issue Feb 7, 2011 · 5 comments

Comments

Projects
None yet
5 participants
@jpalermo

jpalermo commented Feb 7, 2011

I cannot access fixtures inside a global config.before(:each).

@adambair

This comment has been minimized.

Show comment Hide comment
@adambair

adambair Apr 19, 2011

+1

+1

@moger777

This comment has been minimized.

Show comment Hide comment
@moger777

moger777 Oct 14, 2011

I think if you want to do global fixtures, you need to do the following in your spec_helper.rb file:

config.global_fixtures = [:permissions, :roles, :users, etc...

I think if you want to do global fixtures, you need to do the following in your spec_helper.rb file:

config.global_fixtures = [:permissions, :roles, :users, etc...

@jpalermo

This comment has been minimized.

Show comment Hide comment
@jpalermo

jpalermo Oct 15, 2011

I believe I had global_fixtures set to :all. And the fixtures were available in regular before(:each) blocks, just not in the before(:each) declared on config.

I believe I had global_fixtures set to :all. And the fixtures were available in regular before(:each) blocks, just not in the before(:each) declared on config.

@itkin

This comment has been minimized.

Show comment Hide comment
@itkin

itkin Feb 3, 2012

+1

itkin commented Feb 3, 2012

+1

@dchelimsky

This comment has been minimized.

Show comment Hide comment
@dchelimsky

dchelimsky Apr 22, 2012

Owner

This is fixed by #391, which will be part of the coming 2.10 release.

Owner

dchelimsky commented Apr 22, 2012

This is fixed by #391, which will be part of the coming 2.10 release.

@dchelimsky dchelimsky closed this Apr 22, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment