officially Rails load for each test the fixures file into the database
but in my case Rails load the fixures only on the begining of the class
and so I get strange side effects. An example:
officially Rails load for each test the fixures file into the database
but in my case Rails load the fixures only on the begining of the
class
and so I get strange side effects. An example:
It sounds like you’ve got transactional fixtures on (which means that
for speed reasons rails doesn’t reload fixtures, but wraps tests in a
transaction that is rolled back) but that your database doesn’t
support transactions (which usually means mysql with myisam tables)
officially Rails load for each test the fixures file into the database
but in my case Rails load the fixures only on the begining of the
class
and so I get strange side effects. An example:
It sounds like you’ve got transactional fixtures on (which means that
for speed reasons rails doesn’t reload fixtures, but wraps tests in a
transaction that is rolled back) but that your database doesn’t
support transactions (which usually means mysql with myisam tables)
Fred
You are my man! Thanks!!! With InnoDB as storage engine it works.
Many thanks, Eddy
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.