<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Paul Ingles - Writing a Typo Sidebar Test First In Rails Comments</title>
  <id>tag:www.oobaloo.co.uk,2008:/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
  <updated>2006-08-15T19:21:55Z</updated>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Ijonas</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:203</id>
    <published>2006-09-23T10:04:59Z</published>
    <updated>2006-09-23T10:04:59Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Ijonas</title>
<content type="html">Ooops. My apologies Paul. I didn't RTFM. I downloaded the diff patch and got several steps further.

Thanks again.</content>  </entry>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Ijonas</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:202</id>
    <published>2006-09-23T09:51:55Z</published>
    <updated>2006-09-23T09:51:55Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Ijonas</title>
<content type="html">Hi Paul,

I can't seem to get the 'first sidebar test' to work: RelatedArticlesControllerTest. Any chance you could add the full source code that to your repository? I seem to be missing something.

Running the test, it complains about:
ActionController::RoutingError: No url can be generated for the hash {:controller=&gt;&quot;plugins/sidebars/related_articles&quot;, :action=&gt;&quot;content&quot;, :contents=&gt;&quot;#&amp;lt;article:0xb74da4e0&gt;&quot;}

Did you need to update your routes.rb and possibly added a route for the related articles controller ?

Many thanks for your help,
Ijonas.</content>  </entry>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Benjamin</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:201</id>
    <published>2006-08-16T18:04:03Z</published>
    <updated>2006-08-16T18:04:03Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Benjamin</title>
<content type="html">Very thorough explanation for side-bar testing. It makes it a lot easier to have these sorts of base examples to go from. Thank you for sharing! - ben @ http://rubyonrailsblog.com/</content>  </entry>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Piers Cawley</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:200</id>
    <published>2006-08-16T15:13:51Z</published>
    <updated>2006-08-16T15:13:51Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Piers Cawley</title>
<content type="html">Now I've got the idea, it's pretty easy to test sidebars.

I'm busy adding tests to 'representative' sidebars as groundwork for a Spike in the next couple days and a more considered bit of refactoring after that.</content>  </entry>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Paul Ingles</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:199</id>
    <published>2006-08-16T12:27:42Z</published>
    <updated>2006-08-16T12:27:42Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Paul Ingles</title>
<content type="html">Thanks Piers!

I know what you mean, that's the beauty of pairing and rotating! I missed it when I was doing the code for this article!

I definitely like the idea of it going into vendor/plugins. Especially since this plugin relied on extending Article, to deploy it as-is I think will need a plugin and a component. I'm going to take a look at that tonight, or on the train back to London tomorrow night.

:) great news!</content>  </entry>
  <entry xml:base="http://www.oobaloo.co.uk/">
    <author>
      <name>Piers Cawley</name>
    </author>
    <id>tag:www.oobaloo.co.uk,2006-08-15:83:198</id>
    <published>2006-08-15T23:15:51Z</published>
    <updated>2006-08-15T23:15:51Z</updated>
    <link href="http://www.oobaloo.co.uk/articles/2006/8/15/writing-a-typo-sidebar-test-first-in-rails" rel="alternate" type="text/html"/>
    <title>Comment on 'Writing a Typo Sidebar Test First In Rails' by Piers Cawley</title>
<content type="html">Fabulous article, thanks.

I'm now wondering why we ever thought that sidebars were detestable. I guess you can be a little too close to your code.

I'm in the process of attempting to eliminate the FooSidebarController in favour of subclassing the Sidebar object and rendering sidebars via a standard helper in the ApplicationHelper. The current thinking is along the lines of &quot;`render_component` must die!&quot;, which will make it far easier to write a sidebar as something you can just drop into vendor/plugins.

I have the feeling I shall be porting the related articles sidebar first. Tests are good...</content>  </entry>
</feed>
