<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'User authentication unit test?' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/50/topics/203</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>User authentication unit test? posted by Derek DeVries @ Mon, 07 Jan 2008 02:49:30 -0000</title>
      <description>&lt;p&gt;At the top of that page there is a link to &lt;a href="http://www.pragprog.com/titles/ndphpr/errata/add"&gt;submit it&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Mon, 07 Jan 2008 02:49:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:50:203:2135</guid>
      <author>Derek DeVries</author>
      <link>http://forums.pragprog.com/forums/50/topics/203</link>
    </item>
    <item>
      <title>User authentication unit test? posted by John Fiala @ Mon, 07 Jan 2008 01:37:51 -0000</title>
      <description>&lt;p&gt;How do I submit them to the page?  I went to the link you provided, and although I see a lot of errata I can read, I don&amp;#8217;t see anyway to add information?&lt;/p&gt;</description>
      <pubDate>Mon, 07 Jan 2008 01:37:51 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:50:203:2134</guid>
      <author>John Fiala</author>
      <link>http://forums.pragprog.com/forums/50/topics/203</link>
    </item>
    <item>
      <title>User authentication unit test? posted by Derek DeVries @ Sun, 06 Jan 2008 19:34:10 -0000</title>
      <description>&lt;p&gt;John,&lt;/p&gt;


	&lt;p&gt;We&amp;#8217;re glad you&amp;#8217;re enjoying the book!&lt;/p&gt;


	&lt;p&gt;You&amp;#8217;re right, it seems we jumped ahead with authentication test. We&amp;#8217;ll have to fix that. ActiveSupport::TestCase was recently added to Rails 2.0, and as you&amp;#8217;ve seen it doesn&amp;#8217;t affect the functionality of the tests shown in the book. We&amp;#8217;ll hopefully have these examples updated for the next version.&lt;/p&gt;


	&lt;p&gt;The second issue you mention is because we meant to show only a section of the users controller on page 179/180, and not the entire controller. That was a mistake on our part, and we&amp;#8217;ll have to fix this code example.&lt;/p&gt;


	&lt;p&gt;Thanks for your feedback! We&amp;#8217;ll do our best to address these for the next version. If you find any more errata, feel free to submit them to our &lt;a href="http://www.pragprog.com/titles/ndphpr/errata"&gt;errata page&lt;/a&gt; for the book.&lt;/p&gt;</description>
      <pubDate>Sun, 06 Jan 2008 19:34:10 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:50:203:2132</guid>
      <author>Derek DeVries</author>
      <link>http://forums.pragprog.com/forums/50/topics/203</link>
    </item>
    <item>
      <title>User authentication unit test? posted by John Fiala @ Sun, 06 Jan 2008 04:56:36 -0000</title>
      <description>&lt;p&gt;Here&amp;#8217;s another odd bit in the User part of the user_group app.  In the initial listing for the UserController on page 179/180, you include the find_user code and the before_filter statement&amp;#8230; and then later on 187 in the text you explain how you need to add that code to the class.&lt;/p&gt;</description>
      <pubDate>Sun, 06 Jan 2008 04:56:36 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:50:203:2128</guid>
      <author>John Fiala</author>
      <link>http://forums.pragprog.com/forums/50/topics/203</link>
    </item>
    <item>
      <title>User authentication unit test? posted by John Fiala @ Sun, 06 Jan 2008 04:35:53 -0000</title>
      <description>&lt;p&gt;Hey.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m looking at page 186 of the latest version, and it&amp;#8217;s telling me I should write a test for test_should_authenticate_user.  I did my best, but looking at the tests in the final version, it looks like you&amp;#8217;re expecting me to use User.authenticate &amp;#8211; but by this point in the book we haven&amp;#8217;t gone over adding the authenticate method &amp;#8211; that seems to be on page&amp;#8230; 199, it seems.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;BTW&lt;/span&gt;: Really enjoying this book.&lt;/p&gt;


	&lt;p&gt;Oh!  And when I go into my tests, they say they&amp;#8217;re ActiveSupport::TestCase, not Test::Unit::TestCase &amp;#8211; but they work the same way so far, so that&amp;#8217;s not a big thing for me.&lt;/p&gt;


	&lt;p&gt;John&lt;/p&gt;</description>
      <pubDate>Sun, 06 Jan 2008 04:35:53 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:50:203:2126</guid>
      <author>John Fiala</author>
      <link>http://forums.pragprog.com/forums/50/topics/203</link>
    </item>
  </channel>
</rss>
