<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>David Chelimsky: Inferred Controllers and Helpers in Spec::Rails</title>
    <link>http://blog.davidchelimsky.net/articles/2007/04/04/inferred-controllers-and-helpers-in-spec-rails</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>on software in process and practice</description>
    <item>
      <title>Inferred Controllers and Helpers in Spec::Rails</title>
      <description>&lt;p&gt;Here&amp;#8217;s a nice little enhancement in Spec::Rails-0.9.&lt;/p&gt;


	&lt;p&gt;Up until now, controller examples required that the controller be named:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;#the old way
context "Login Controller" do
  controller_name :login
  ...
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;You&amp;#8217;ll still be able to do that, but you&amp;#8217;ll also be able to do this:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;describe LoginController do
  ...
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;... and Spec::Rails will assume that LoginController is what you want to use.&lt;/p&gt;


	&lt;p&gt;This works for your helper examples as well:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;describe PeopleHelper do
  ...
&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Wed, 04 Apr 2007 01:01:57 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:76086311-8fc9-410c-8276-a1ef8a71f141</guid>
      <author>David</author>
      <link>http://blog.davidchelimsky.net/articles/2007/04/04/inferred-controllers-and-helpers-in-spec-rails</link>
      <category>rspec</category>
      <category>rails</category>
      <category>bdd</category>
    </item>
  </channel>
</rss>
