For some reason my fixtures are not reloading their data after each test
method. I’ve read that this is supposed to be the case so that I can
work with clean data for every test, but it isn’t happening. I have
checked my test test.rb configuration environment file and have not
noticed anything out of place. There is nothing in the API that I have
come across that would create this behavior. Any help?
I found the answer if anybody else runs into this issue. Check your
test_helper.rb file. Mine has transactional fixtures turned on:
self.use_transactional_fixtures = true
Just set that line to false and that should fix things.
Brian C. wrote:
For some reason my fixtures are not reloading their data after each test
method. I’ve read that this is supposed to be the case so that I can
work with clean data for every test, but it isn’t happening. I have
checked my test test.rb configuration environment file and have not
noticed anything out of place. There is nothing in the API that I have
come across that would create this behavior. Any help?