<?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: Rspec View specs and integrate_views</title>
	<atom:link href="http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/feed/" rel="self" type="application/rss+xml" />
	<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/</link>
	<description>Adventures in software development</description>
	<lastBuildDate>Sun, 22 Mar 2009 14:37:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Zach Dennis</title>
		<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/#comment-180</link>
		<dc:creator>Zach Dennis</dc:creator>
		<pubDate>Sun, 22 Mar 2009 14:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://iridescenturchin.wordpress.com/?p=84#comment-180</guid>
		<description>integrate_views can be handy in some situations, but it others it can cause headache and confusion since it requires the controller specs to know a whole lot about everything a view  will indirectly need. And at the end of the day the controller spec is managing a spider web of dependencies just so it can render the views. 

I know this was written about a year ago a lot has changed since then, but nowadays Cucumber provides an excellent way to ensure all of the pieces are integrated nicely, and you can leave your controller specs in isolation without worrying about not having some level of integration. This isn&#039;t to say that you may not find a time where integrate_views is useful, but Cucumber gives you more meaningful integration than controller specs rendering through to views.

Thanks for sharing Steve, sorry I&#039;m late to the part. :)</description>
		<content:encoded><![CDATA[<p>integrate_views can be handy in some situations, but it others it can cause headache and confusion since it requires the controller specs to know a whole lot about everything a view  will indirectly need. And at the end of the day the controller spec is managing a spider web of dependencies just so it can render the views. </p>
<p>I know this was written about a year ago a lot has changed since then, but nowadays Cucumber provides an excellent way to ensure all of the pieces are integrated nicely, and you can leave your controller specs in isolation without worrying about not having some level of integration. This isn&#8217;t to say that you may not find a time where integrate_views is useful, but Cucumber gives you more meaningful integration than controller specs rendering through to views.</p>
<p>Thanks for sharing Steve, sorry I&#8217;m late to the part. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Hayes</title>
		<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/#comment-152</link>
		<dc:creator>Steve Hayes</dc:creator>
		<pubDate>Mon, 07 Apr 2008 08:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://iridescenturchin.wordpress.com/?p=84#comment-152</guid>
		<description>Tim,

There are some excellent resource on the net that can do a far better job than I can. I suggest you look at the examples on the RSpec site (http://rspec.info/examples.html), or download the Peepcode screencast on RSpec (http://peepcode.com/products/rspec-basics).

Steve</description>
		<content:encoded><![CDATA[<p>Tim,</p>
<p>There are some excellent resource on the net that can do a far better job than I can. I suggest you look at the examples on the RSpec site (<a href="http://rspec.info/examples.html" rel="nofollow">http://rspec.info/examples.html</a>), or download the Peepcode screencast on RSpec (<a href="http://peepcode.com/products/rspec-basics" rel="nofollow">http://peepcode.com/products/rspec-basics</a>).</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tim</title>
		<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/#comment-151</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Tue, 01 Apr 2008 09:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://iridescenturchin.wordpress.com/?p=84#comment-151</guid>
		<description>hi 
 i have installed the plugin of rspec and now i have not known to write method in the spec.help me 
 Thanks 
 Tim</description>
		<content:encoded><![CDATA[<p>hi<br />
 i have installed the plugin of rspec and now i have not known to write method in the spec.help me<br />
 Thanks<br />
 Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Hayes</title>
		<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/#comment-134</link>
		<dc:creator>Steve Hayes</dc:creator>
		<pubDate>Thu, 28 Feb 2008 21:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://iridescenturchin.wordpress.com/?p=84#comment-134</guid>
		<description>I finally saw this comment, but only after Marty mentioned it to me (somehow it escaped my email notifications). So....


describe StoriesController,&quot;editing a story&quot; do

  integrate_views
  
  before(:each) do
    @story = model_factory.story_with_components[:story]
    get &#039;edit&#039;, :project_id =&gt; @story.project.id, :id =&gt; @story.id
  end
  
  it &quot;should load story&quot; do
    assigns[:story].should == @story
  end

  it &quot;should render edit template&quot; do
    response.should render_template(&#039;edit&#039;)
  end

end</description>
		<content:encoded><![CDATA[<p>I finally saw this comment, but only after Marty mentioned it to me (somehow it escaped my email notifications). So&#8230;.</p>
<p>describe StoriesController,&#8221;editing a story&#8221; do</p>
<p>  integrate_views</p>
<p>  before(:each) do<br />
    @story = model_factory.story_with_components[:story]<br />
    get &#8216;edit&#8217;, :project_id =&gt; @story.project.id, :id =&gt; @story.id<br />
  end</p>
<p>  it &#8220;should load story&#8221; do<br />
    assigns[:story].should == @story<br />
  end</p>
<p>  it &#8220;should render edit template&#8221; do<br />
    response.should render_template(&#8216;edit&#8217;)<br />
  end</p>
<p>end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marty Andrews</title>
		<link>http://iridescenturchin.wordpress.com/2008/02/19/rspec-view-specs-and-integrate_views/#comment-124</link>
		<dc:creator>Marty Andrews</dc:creator>
		<pubDate>Tue, 19 Feb 2008 10:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://iridescenturchin.wordpress.com/?p=84#comment-124</guid>
		<description>Can you show a short example please?</description>
		<content:encoded><![CDATA[<p>Can you show a short example please?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
