<?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 for MacksMind</title>
	<atom:link href="http://macksmind.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://macksmind.net</link>
	<description>Technical Wizardry, Rants, and just a Whiff of Insanity</description>
	<lastBuildDate>Mon, 13 Dec 2010 16:44:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Verifying select field value with Cucumber and Webrat by Johnathon Wright</title>
		<link>http://macksmind.net/2009/05/31/verifying-select-field-value-with-cucumber-and-webrat/#comment-9968</link>
		<dc:creator>Johnathon Wright</dc:creator>
		<pubDate>Mon, 13 Dec 2010 16:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=18#comment-9968</guid>
		<description>huge time saver. thanks.</description>
		<content:encoded><![CDATA[<p>huge time saver. thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Verifying select field value with Cucumber and Webrat by Chris</title>
		<link>http://macksmind.net/2009/05/31/verifying-select-field-value-with-cucumber-and-webrat/#comment-9504</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 13 Nov 2010 01:53:03 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=18#comment-9504</guid>
		<description>BTW, I got it to work with Capybara (0.4.0) with WebDriver (0.1.0) like this:

find_field(field).native.value =~ /^#{value}$/

It seems it is more complicated to do it outside of a browser test...</description>
		<content:encoded><![CDATA[<p>BTW, I got it to work with Capybara (0.4.0) with WebDriver (0.1.0) like this:</p>
<p>find_field(field).native.value =~ /^#{value}$/</p>
<p>It seems it is more complicated to do it outside of a browser test&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Verifying select field value with Cucumber and Webrat by Chris</title>
		<link>http://macksmind.net/2009/05/31/verifying-select-field-value-with-cucumber-and-webrat/#comment-9502</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 13 Nov 2010 01:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=18#comment-9502</guid>
		<description>Ganesh, I tried using your Capybara snippet of this and get the following error:

undefined method &#039;xpath&#039; for # (NoMethodError)

Which version of Capybara are you using?  I am using 0.4.0 with selenium-webdriver version 0.1.0.</description>
		<content:encoded><![CDATA[<p>Ganesh, I tried using your Capybara snippet of this and get the following error:</p>
<p>undefined method &#8216;xpath&#8217; for # (NoMethodError)</p>
<p>Which version of Capybara are you using?  I am using 0.4.0 with selenium-webdriver version 0.1.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using belongs_to in Rails model validations when the parent is unsaved by K-P</title>
		<link>http://macksmind.net/2008/04/26/using-belongs_to-in-rails-model-validations-when-the-parent-is-unsaved/#comment-8019</link>
		<dc:creator>K-P</dc:creator>
		<pubDate>Tue, 21 Sep 2010 15:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=10#comment-8019</guid>
		<description>Thanks man, you really made my day! I had been googling around for this for quite a while.</description>
		<content:encoded><![CDATA[<p>Thanks man, you really made my day! I had been googling around for this for quite a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using belongs_to in Rails model validations when the parent is unsaved by Jens</title>
		<link>http://macksmind.net/2008/04/26/using-belongs_to-in-rails-model-validations-when-the-parent-is-unsaved/#comment-6863</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Tue, 13 Jul 2010 19:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=10#comment-6863</guid>
		<description>Thanks! I&#039;ll try this ASAP. A first experiment seems to work without side effects. -Jens</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ll try this ASAP. A first experiment seems to work without side effects. -Jens</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using belongs_to in Rails model validations when the parent is unsaved by Mack Earnhardt</title>
		<link>http://macksmind.net/2008/04/26/using-belongs_to-in-rails-model-validations-when-the-parent-is-unsaved/#comment-6841</link>
		<dc:creator>Mack Earnhardt</dc:creator>
		<pubDate>Sun, 11 Jul 2010 15:44:50 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=10#comment-6841</guid>
		<description>Jen, try this tweak:

ObjectSpace.each_object(Order) {&#124;o&#124; parent_order = o if o.new_record? &amp;&amp; o.line_items.include?(self)}</description>
		<content:encoded><![CDATA[<p>Jen, try this tweak:</p>
<p>ObjectSpace.each_object(Order) {|o| parent_order = o if o.new_record? &#038;&#038; o.line_items.include?(self)}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Verifying select field value with Cucumber and Webrat by James</title>
		<link>http://macksmind.net/2009/05/31/verifying-select-field-value-with-cucumber-and-webrat/#comment-6796</link>
		<dc:creator>James</dc:creator>
		<pubDate>Tue, 06 Jul 2010 07:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=18#comment-6796</guid>
		<description>Thanks for the tip. I suggest that you use the following regex to insure that you don&#039;t get false positives:

/^#{value}$/

e.g. Without the anchors, if the selected value is &quot;Mrs&quot; and I expect &quot;Mr&quot;, it will still match and return a false positive result.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip. I suggest that you use the following regex to insure that you don&#8217;t get false positives:</p>
<p>/^#{value}$/</p>
<p>e.g. Without the anchors, if the selected value is &#8220;Mrs&#8221; and I expect &#8220;Mr&#8221;, it will still match and return a false positive result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using belongs_to in Rails model validations when the parent is unsaved by Jens</title>
		<link>http://macksmind.net/2008/04/26/using-belongs_to-in-rails-model-validations-when-the-parent-is-unsaved/#comment-6746</link>
		<dc:creator>Jens</dc:creator>
		<pubDate>Sun, 27 Jun 2010 08:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=10#comment-6746</guid>
		<description>Hi,

your method works, but it triggers hundreds (in my case) of superfluous SQL requests due to the &quot;.include?&quot; statement like &quot;SELECT child.id FROM children WHERE (child.id = NULL) AND (child.parent_id = xxx)&quot;.

Is there a way to avoid these requests?

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>your method works, but it triggers hundreds (in my case) of superfluous SQL requests due to the &#8220;.include?&#8221; statement like &#8220;SELECT child.id FROM children WHERE (child.id = NULL) AND (child.parent_id = xxx)&#8221;.</p>
<p>Is there a way to avoid these requests?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Verifying select field value with Cucumber and Webrat by Ganesh Shankar</title>
		<link>http://macksmind.net/2009/05/31/verifying-select-field-value-with-cucumber-and-webrat/#comment-6735</link>
		<dc:creator>Ganesh Shankar</dc:creator>
		<pubDate>Fri, 25 Jun 2010 01:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=18#comment-6735</guid>
		<description>Thanks for the tip! I&#039;m actually using Capybara so I had to rework your step to get it to work. For those other Capybara users out there... this is what you need:

Then /^&quot;([^&quot;]*)&quot; should be selected for &quot;([^&quot;]*)&quot;$/ do &#124;value, field&#124;
  find_field(field).node.xpath(&quot;.//option[@selected = &#039;selected&#039;]&quot;).inner_html.should =~ /#{value}/
end

Cheers,
Ganesh</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! I&#8217;m actually using Capybara so I had to rework your step to get it to work. For those other Capybara users out there&#8230; this is what you need:</p>
<p>Then /^&#8221;([^"]*)&#8221; should be selected for &#8220;([^"]*)&#8221;$/ do |value, field|<br />
  find_field(field).node.xpath(&#8220;.//option[@selected = 'selected']&#8220;).inner_html.should =~ /#{value}/<br />
end</p>
<p>Cheers,<br />
Ganesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using belongs_to in Rails model validations when the parent is unsaved by calebhc</title>
		<link>http://macksmind.net/2008/04/26/using-belongs_to-in-rails-model-validations-when-the-parent-is-unsaved/#comment-6306</link>
		<dc:creator>calebhc</dc:creator>
		<pubDate>Tue, 27 Apr 2010 20:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://macksmind.net/?p=10#comment-6306</guid>
		<description>Thanks for posting this!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

