<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Helper for Testing Model Validation in Unit Tests</title>
	<atom:link href="http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Aug 2009 23:05:03 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Darren</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-395</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Fri, 24 Oct 2008 21:16:36 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-395</guid>
		<description>Could we see your create_user method? Maybe your User model as well? I&#039;ve been having a few issues, however I think it&#039;s to do with custom validations module I use for certain validations that I use many times in my application.</description>
		<content:encoded><![CDATA[<p>Could we see your create_user method? Maybe your User model as well? I&#8217;ve been having a few issues, however I think it&#8217;s to do with custom validations module I use for certain validations that I use many times in my application.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-380</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 25 Jan 2008 13:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-380</guid>
		<description>Yep. To me a similar thing occurred while testing.

I tried a sequence of 4 validation tests in one test method. After the first run of &#039;validation_tester&#039; the function leaves the object in an invalid state because the invalid tests are done _after_ the valid ones. Just switch the two blocks to leave the object in a valid state at the end.

Solved the problem for me.</description>
		<content:encoded><![CDATA[<p>Yep. To me a similar thing occurred while testing.</p>
<p>I tried a sequence of 4 validation tests in one test method. After the first run of &#8216;validation_tester&#8217; the function leaves the object in an invalid state because the invalid tests are done _after_ the valid ones. Just switch the two blocks to leave the object in a valid state at the end.</p>
<p>Solved the problem for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kabish</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-303</link>
		<dc:creator>kabish</dc:creator>
		<pubDate>Mon, 03 Dec 2007 16:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-303</guid>
		<description>I&#039;m experiencing a strange problem while using the snippet. 

It seems to leave in the test db the last record of the valid values passed in the array, so the database is not totally cleaned after running the tests and therefore they are not repeatable.</description>
		<content:encoded><![CDATA[<p>I&#8217;m experiencing a strange problem while using the snippet. </p>
<p>It seems to leave in the test db the last record of the valid values passed in the array, so the database is not totally cleaned after running the tests and therefore they are not repeatable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kabish</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-302</link>
		<dc:creator>kabish</dc:creator>
		<pubDate>Mon, 03 Dec 2007 14:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-302</guid>
		<description>Perfect. And congratulations for your blog, just discovered it but looks fantastic.</description>
		<content:encoded><![CDATA[<p>Perfect. And congratulations for your blog, just discovered it but looks fantastic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-301</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 03 Dec 2007 12:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-301</guid>
		<description>Updated to include a license now.</description>
		<content:encoded><![CDATA[<p>Updated to include a license now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kabish</title>
		<link>http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-300</link>
		<dc:creator>kabish</dc:creator>
		<pubDate>Mon, 03 Dec 2007 12:43:49 +0000</pubDate>
		<guid isPermaLink="false">http://matthall.wordpress.com/2007/11/21/helper-for-testing-validation-in-unit-tests/#comment-300</guid>
		<description>Fantastic, does the code have any license or can it be freely used?</description>
		<content:encoded><![CDATA[<p>Fantastic, does the code have any license or can it be freely used?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
