Sha256: e83ee9458d717bad18ce9a888f39cf63d8bb39d1a5f20b0c0f63eb740b55137f
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class FactoryGirlTest < Test::Unit::TestCase def test_should_use_live_registry Post.destroy_all post1 = Factory(:a_very_special_post) post2 = Factory(:a_very_special_post) post3 = Factory(:a_very_special_post) assert 1, Factory.live_registry.size post3.destroy assert 0, Post.count assert 0, Factory.live_registry.size end def setup teardown end def teardown Post.destroy_all User.destroy_all end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
freegenie-factory_girl-1.2.2 | test/factory_girl_test.rb |