problem with fixtures

2 views
Skip to first unread message

michelsongs

unread,
Jul 27, 2010, 1:30:46 PM7/27/10
to Steak
Hi ,

im trying to use fixtures in an acceptance test with steak, but
apparently the fixtures wont load

my configuration in acceptance_helper is

Spec::Runner.configure do |config|
config.include Capybara
config.use_transactional_fixtures = true
config.use_instantiated_fixtures = false
config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
end

and the spec in question is

feature "Main page" do
fixtures :usuarios, :personas, :cuentas

background do
create_user :login => usuarios(:user1).login
login_as usuarios(:user1).login
end
....


in my model specs it works , but not in steak. it raises an:

No fixture with name 'user1' found for table 'usuarios'

any ideas ?

best regards
Reply all
Reply to author
Forward
Message has been deleted
0 new messages