Closed joaomilho closed 13 years ago
I've read all issues related... but it looks it just me:
If I do that it keeps the data in the database. self.use_transactional_fixtures = true test "should get show with name" do product = Product.make!
But if I use just "save" it works perfeclty... self.use_transactional_fixtures = true test "should get show with name" do product = Product.make.save
Is there any problem on using make! with transactional fixtures??
Found!
Machinist.configure do |config| config.cache_objects = false end
I've read all issues related... but it looks it just me:
If I do that it keeps the data in the database. self.use_transactional_fixtures = true test "should get show with name" do product = Product.make!
But if I use just "save" it works perfeclty... self.use_transactional_fixtures = true test "should get show with name" do product = Product.make.save
Is there any problem on using make! with transactional fixtures??