notahat / machinist

Fixtures aren't fun. Machinist is.
MIT License
1.12k stars 134 forks source link

make! with transactional fixtures #88

Closed joaomilho closed 13 years ago

joaomilho commented 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??

joaomilho commented 13 years ago

Found!

Machinist.configure do |config| config.cache_objects = false end