<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Ben</title><link>http://disqus.com/people/436bafa7b546e5da6b23eee6299a10f4/</link><description></description><language>en</language><lastBuildDate>Tue, 12 Feb 2008 19:57:21 -0000</lastBuildDate><item><title>Re: Dan Manges - Fixin' Fixtures with Factory</title><link>http://dcmanges.disqus.com/dan_manges_fixin_fixtures_with_factory/#comment-27657</link><description>The only problem I have run into is that the objects are created when setting up the default_attributes hash - even if they are not used. This is no problem for strings, but in your example above create_customer always calls create_paperboy.&lt;br&gt;&lt;br&gt;Obviously, this has some impact on the speed of the test (not sure if it's really noticeable or not), but the bigger problem for my project is that it messes up tests that check how many records are created or destroyed. For instance, I have  test that checks to make sure the number of Users is one greater after performing a certain action. This method will break that.&lt;br&gt;&lt;br&gt;Perhaps that's not a good way to test record creation and deletion, but it is pretty common - I believe the tests that are output when you use scaffold have a similar style. I wonder if there is a simple way to lazily evaluate the code in default_attributes? Perhaps wrapping each expression in a Proc or something?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Wed, 05 Dec 2007 22:06:35 -0000</pubDate></item><item><title>Re: Dan Manges - Fixin' Fixtures with Factory</title><link>http://dcmanges.disqus.com/dan_manges_fixin_fixtures_with_factory/#comment-36207</link><description>Scott,&lt;br&gt;&lt;br&gt;Sounds cool. I'll check out FixtureReplacement. Thanks for creating it!&lt;br&gt;&lt;br&gt;Ben</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Sat, 15 Dec 2007 12:35:39 -0000</pubDate></item><item><title>Re: About:HanMeta</title><link>http://joshkimdotorg.disqus.com/abouthanmeta/#comment-5682449</link><description>&lt;p&gt;Congrats on starting your business! I guarantee it's going to be a wild ride.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Tue, 12 Feb 2008 19:57:21 -0000</pubDate></item><item><title>Re: About:HanMeta</title><link>http://joshkimdotorg.disqus.com/abouthanmeta/#comment-2289694</link><description>&lt;p&gt;Congrats on starting your business! I guarantee it's going to be a wild ride.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ben</dc:creator><pubDate>Tue, 12 Feb 2008 19:57:21 -0000</pubDate></item></channel></rss>