Topic: Problem with Ruby on Rails Tutorial Book 2.3.8: Part 1

I'm working through this book and have come to a point in the testing on page 100 where the book says my tests should begin to pass, but they aren't.  Here is a test that is failing:

    it "should have the right title" do
      get 'home'
      response.should have_tag("title",
          "Ruby on Rails Tutorial Sample App | Home")
    end

Re: Problem with Ruby on Rails Tutorial Book 2.3.8: Part 1

And here is the simple page that it is failing on:

<!DOCTYPE html PUBLIC "~//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Ruby on Rails Tutorial Sample App | Home</title>
  </head>
  <body>
    <h1>Sample App Home</h1>
    <p>
      This is the home page for the
      <a href="http://www.railstutorial.org/">Ruby on Rails Tutorial</a>
      sample application.
    </p>
  </body>
</html>

The test is returning:

'PagesController GET 'home' should have the right title' FAILED
Expected at least 1 element matching "title", found 0.
<false> is not true.

It's as if it doesn't even recognize the <title> node of the xml.  Any help?

Thanks,
Eric

Re: Problem with Ruby on Rails Tutorial Book 2.3.8: Part 1

Sorry, but the bot question didn't have an answer box unless I posted that in two pieces.  Very strange.  Got an error every time.  I ended up having to pull the code BBCode tags out of the top one because it stopped at the word "it" and said there was not end code tag...

Re: Problem with Ruby on Rails Tutorial Book 2.3.8: Part 1

Well, not sure what I did, but I kept working through the tutorial and have had to change quite a bit at the end of chapter 3.  Now all of the tests are succeeding.  I think I may have had a copy and paste error in a few of my tests where the second test (the title check) had the incorrect page when it did the get.

Thanks,
Eric