<?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/"
		>
<channel>
	<title>Comments on: rails captcha and testing using mock objects</title>
	<atom:link href="http://vinsol.com/blog/2006/07/21/rails-captcha-and-testing-using-mock-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinsol.com/blog/2006/07/21/rails-captcha-and-testing-using-mock-objects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rails-captcha-and-testing-using-mock-objects</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 09:23:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joe Slag</title>
		<link>http://vinsol.com/blog/2006/07/21/rails-captcha-and-testing-using-mock-objects/comment-page-1/#comment-1602</link>
		<dc:creator>Joe Slag</dc:creator>
		<pubDate>Tue, 13 Feb 2007 16:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.fromdelhi.com/2006/07/21/rails-captcha-and-testing-using-mock-objects/#comment-1602</guid>
		<description>Looks like the plugin developers have added the RAILS_ENV test themselves (in add_captcha_to_active_record.validate_catchpa)</description>
		<content:encoded><![CDATA[<p>Looks like the plugin developers have added the RAILS_ENV test themselves (in add_captcha_to_active_record.validate_catchpa)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chao lam</title>
		<link>http://vinsol.com/blog/2006/07/21/rails-captcha-and-testing-using-mock-objects/comment-page-1/#comment-32</link>
		<dc:creator>chao lam</dc:creator>
		<pubDate>Wed, 26 Jul 2006 00:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.fromdelhi.com/2006/07/21/rails-captcha-and-testing-using-mock-objects/#comment-32</guid>
		<description>Thanks for an informative article about the use of mocks. I ran into exactly the same problem with testing the validates_captcha plugin. My solution was to the :if clause e.g.
  validates_captcha  :if =&gt; Proc.new {&#124;u&#124; ENV[&#039;RAILS_ENV&#039;] != &#039;test&#039;}

That seems to work too. 
Ideally, I would really like to have a test case that really validates that the captcha itself works. I wonder what would be the easiest way to do that.

Again, thanks for sharing,
chao</description>
		<content:encoded><![CDATA[<p>Thanks for an informative article about the use of mocks. I ran into exactly the same problem with testing the validates_captcha plugin. My solution was to the :if clause e.g.<br />
  validates_captcha  :if =&gt; Proc.new {|u| ENV['RAILS_ENV'] != &#8216;test&#8217;}</p>
<p>That seems to work too.<br />
Ideally, I would really like to have a test case that really validates that the captcha itself works. I wonder what would be the easiest way to do that.</p>
<p>Again, thanks for sharing,<br />
chao</p>
]]></content:encoded>
	</item>
</channel>
</rss>

