<?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 for Ruby Flare</title>
	<atom:link href="http://rubyflare.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubyflare.com</link>
	<description></description>
	<lastBuildDate>Tue, 12 Jul 2011 17:15:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>Comment on Test Business Behaviour, Don&#8217;t Rely on UI by Austin Schneider</title>
		<link>http://rubyflare.com/2011/01/26/test-business-behaviour-dont-rely-on-ui/#comment-137</link>
		<dc:creator><![CDATA[Austin Schneider]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 17:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=261#comment-137</guid>
		<description><![CDATA[It doesn&#039;t matter to your user that some code somewhere says he&#039;s logged in. What matters to him is the functionality that logging in provides, like being able to see the dashboard page. In my opinion, the &quot;I should be logged in&quot; step is irrelevant from the user&#039;s point-of-view.]]></description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t matter to your user that some code somewhere says he&#8217;s logged in. What matters to him is the functionality that logging in provides, like being able to see the dashboard page. In my opinion, the &#8220;I should be logged in&#8221; step is irrelevant from the user&#8217;s point-of-view.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Cucumbering With Pagination by Michael</title>
		<link>http://rubyflare.com/2010/11/25/faster-cucumbering-with-pagination/#comment-123</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Fri, 18 Feb 2011 02:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=247#comment-123</guid>
		<description><![CDATA[I later had the need to turn off pagination entirely for some features. I did this by redefining the DEFAULT_PER_PAGE constant in a tagged before/after hook and setting it to a very large number. I initially used a class variable to keep track of the original DEFAULT_PER_PAGE value but this generated a &quot;warning: class variable access from toplevel&quot;. It worked but I didn&#039;t like seeing this warning throughout my output.

The solution was to simply define another constant to hold the original default per page value.

In features/support/hooks.rb:

Before(&#039;@no-pagination&#039;) do
  ActiveRecord::Base.instance_eval do 
    def per_page; 1_000_000; end 
  end
  silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }
end

After(&#039;@no-pagination&#039;) do
  ActiveRecord::Base.instance_eval do 
    def per_page; ORIGINAL_PER_PAGE; end
  end
  silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }
end

And modified my config/environments/test.rb:

DEFAULT_PER_PAGE = ORIGINAL_PER_PAGE = ActiveRecord::Base.per_page

So now for the features and scenarios that I require no pagination, I tag them with @no-pagination and it all works.]]></description>
		<content:encoded><![CDATA[<p>I later had the need to turn off pagination entirely for some features. I did this by redefining the DEFAULT_PER_PAGE constant in a tagged before/after hook and setting it to a very large number. I initially used a class variable to keep track of the original DEFAULT_PER_PAGE value but this generated a &#8220;warning: class variable access from toplevel&#8221;. It worked but I didn&#8217;t like seeing this warning throughout my output.</p>
<p>The solution was to simply define another constant to hold the original default per page value.</p>
<p>In features/support/hooks.rb:</p>
<p>Before(&#8216;@no-pagination&#8217;) do<br />
  ActiveRecord::Base.instance_eval do<br />
    def per_page; 1_000_000; end<br />
  end<br />
  silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }<br />
end</p>
<p>After(&#8216;@no-pagination&#8217;) do<br />
  ActiveRecord::Base.instance_eval do<br />
    def per_page; ORIGINAL_PER_PAGE; end<br />
  end<br />
  silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }<br />
end</p>
<p>And modified my config/environments/test.rb:</p>
<p>DEFAULT_PER_PAGE = ORIGINAL_PER_PAGE = ActiveRecord::Base.per_page</p>
<p>So now for the features and scenarios that I require no pagination, I tag them with @no-pagination and it all works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Faster Cucumbering With Pagination by Michael</title>
		<link>http://rubyflare.com/2010/11/25/faster-cucumbering-with-pagination/#comment-120</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Fri, 04 Feb 2011 00:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=247#comment-120</guid>
		<description><![CDATA[Also, if you want to silence the &quot;already initialized constant&quot; warnings, simply use the silence_warnings rails method to wrap your constant assignment:

    silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }]]></description>
		<content:encoded><![CDATA[<p>Also, if you want to silence the &#8220;already initialized constant&#8221; warnings, simply use the silence_warnings rails method to wrap your constant assignment:</p>
<p>    silence_warnings { DEFAULT_PER_PAGE = ActiveRecord::Base.per_page }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Testing with Cucumber, Capybara and env.js by JavaScript integration testing in Ruby on Rails &#124; DEEP in PHP</title>
		<link>http://rubyflare.com/2010/06/12/javascript-testing-with-cucumber-capybara-and-env-js/#comment-119</link>
		<dc:creator><![CDATA[JavaScript integration testing in Ruby on Rails &#124; DEEP in PHP]]></dc:creator>
		<pubDate>Sun, 30 Jan 2011 19:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=238#comment-119</guid>
		<description><![CDATA[[...] There are some alternatives but they dont work all the time or for every situations. For instance: Capybara with envjs [...]]]></description>
		<content:encoded><![CDATA[<p>[...] There are some alternatives but they dont work all the time or for every situations. For instance: Capybara with envjs [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Test Business Behaviour, Don&#8217;t Rely on UI by Tweets that mention Test Business Behaviour, Don’t Rely on UI « Ruby Flare -- Topsy.com</title>
		<link>http://rubyflare.com/2011/01/26/test-business-behaviour-dont-rely-on-ui/#comment-118</link>
		<dc:creator><![CDATA[Tweets that mention Test Business Behaviour, Don’t Rely on UI « Ruby Flare -- Topsy.com]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 14:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=261#comment-118</guid>
		<description><![CDATA[[...] This post was mentioned on Twitter by Michael MacDonald, Arndt Touby. Arndt Touby said: @fpauser: Test Business Behaviour, Don’t Rely on UI « Ruby Flare http://bit.ly/dYN6eu [...]]]></description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Michael MacDonald, Arndt Touby. Arndt Touby said: @fpauser: Test Business Behaviour, Don’t Rely on UI « Ruby Flare <a href="http://bit.ly/dYN6eu" rel="nofollow">http://bit.ly/dYN6eu</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pickle my Cucumber! by Cucumber, spork, pickle &#171; Upubly</title>
		<link>http://rubyflare.com/2009/10/28/pickle-my-cucumber/#comment-116</link>
		<dc:creator><![CDATA[Cucumber, spork, pickle &#171; Upubly]]></dc:creator>
		<pubDate>Tue, 04 Jan 2011 22:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.wordpress.com/?p=27#comment-116</guid>
		<description><![CDATA[[...] Pickle is a step definition builder which intelligently generates step definitions based on your activerecord/mongomapper/mongoid models.  I re-wrote a lot of our features today using pickle and managed, with a bit of feature fiddling, to cut down the number of definitions by half.  There is nothing better than a good example to get started and there is a great example  [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Pickle is a step definition builder which intelligently generates step definitions based on your activerecord/mongomapper/mongoid models.  I re-wrote a lot of our features today using pickle and managed, with a bit of feature fiddling, to cut down the number of definitions by half.  There is nothing better than a good example to get started and there is a great example  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Testing with Cucumber, Capybara and env.js by Jo Liss</title>
		<link>http://rubyflare.com/2010/06/12/javascript-testing-with-cucumber-capybara-and-env-js/#comment-114</link>
		<dc:creator><![CDATA[Jo Liss]]></dc:creator>
		<pubDate>Wed, 22 Dec 2010 17:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=238#comment-114</guid>
		<description><![CDATA[Quick heads-up in case anyone else is using Ruby 1.9:

One the Gems (env-js perhaps?) requires Johnson, and Johnson doesn&#039;t compile with Ruby 1.9 right now:
http://groups.google.com/group/johnson-talk/msg/cf2ad08e55dd0911

I&#039;ll try this again in a month or so. :)]]></description>
		<content:encoded><![CDATA[<p>Quick heads-up in case anyone else is using Ruby 1.9:</p>
<p>One the Gems (env-js perhaps?) requires Johnson, and Johnson doesn&#8217;t compile with Ruby 1.9 right now:<br />
<a href="http://groups.google.com/group/johnson-talk/msg/cf2ad08e55dd0911" rel="nofollow">http://groups.google.com/group/johnson-talk/msg/cf2ad08e55dd0911</a></p>
<p>I&#8217;ll try this again in a month or so. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Testing with Cucumber, Capybara and env.js by Michael</title>
		<link>http://rubyflare.com/2010/06/12/javascript-testing-with-cucumber-capybara-and-env-js/#comment-73</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Thu, 28 Oct 2010 12:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=238#comment-73</guid>
		<description><![CDATA[Hi Gaurav,

The @javascript tag is what you need to add to any of your cucumber scenarios/features that use javascript. The envjs is the driver that Capybara uses to carry out these javascript related scenarios. That&#039;s the basic difference.

I hope that helps.

Cheers,

Michael.]]></description>
		<content:encoded><![CDATA[<p>Hi Gaurav,</p>
<p>The @javascript tag is what you need to add to any of your cucumber scenarios/features that use javascript. The envjs is the driver that Capybara uses to carry out these javascript related scenarios. That&#8217;s the basic difference.</p>
<p>I hope that helps.</p>
<p>Cheers,</p>
<p>Michael.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Testing with Cucumber, Capybara and env.js by Gaurav Saini</title>
		<link>http://rubyflare.com/2010/06/12/javascript-testing-with-cucumber-capybara-and-env-js/#comment-72</link>
		<dc:creator><![CDATA[Gaurav Saini]]></dc:creator>
		<pubDate>Mon, 25 Oct 2010 06:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=238#comment-72</guid>
		<description><![CDATA[In example you are using @javascript in articles.feature but in support/env.rb the javascript driver declared is envjs. I didn&#039;t understand what to do. Actually I am new to capybara and even rails.Please show the right path.
Thanks.]]></description>
		<content:encoded><![CDATA[<p>In example you are using @javascript in articles.feature but in support/env.rb the javascript driver declared is envjs. I didn&#8217;t understand what to do. Actually I am new to capybara and even rails.Please show the right path.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Javascript Testing with Cucumber, Capybara and env.js by &#187; Faster AJAX integration tests using Rails, Cucumber, Capybara, and envjs &#187; My geek blog &#8211; Brian McQuay</title>
		<link>http://rubyflare.com/2010/06/12/javascript-testing-with-cucumber-capybara-and-env-js/#comment-69</link>
		<dc:creator><![CDATA[&#187; Faster AJAX integration tests using Rails, Cucumber, Capybara, and envjs &#187; My geek blog &#8211; Brian McQuay]]></dc:creator>
		<pubDate>Sun, 04 Jul 2010 23:58:41 +0000</pubDate>
		<guid isPermaLink="false">http://rubyflare.com/?p=238#comment-69</guid>
		<description><![CDATA[[...] for alternatives. The culprit in the slowdown here was Selenium. I came across a blog post by RubyFlare the was talking about a much faster alternative to Selenium called envjs. You need to install the [...]]]></description>
		<content:encoded><![CDATA[<p>[...] for alternatives. The culprit in the slowdown here was Selenium. I came across a blog post by RubyFlare the was talking about a much faster alternative to Selenium called envjs. You need to install the [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

