michelsongs
unread,Jul 27, 2010, 1:30:46 PM7/27/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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