<span style="font-weight: bold;">Dan, you can take a look at what </span><span class="xar-sub">

                            <strong>court3nay did, here:<br><br></strong></span><span class="xar-sub">
 <strong></strong></span><a href="http://sample.caboo.se/empty_rails_app/trunk/spec/controllers/session_controller_spec.rb">http://sample.caboo.se/empty_rails_app/trunk/spec/controllers/session_controller_spec.rb</a><br>
<br>Robert<br><br><div><span class="gmail_quote">On 10/18/07, <b class="gmail_sendername">Brandon Keepers</b> &lt;<a href="mailto:bkeepers@gmail.com">bkeepers@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dan,<br><br>On Oct 18, 2007, at 6:14 PM, Dan Croak wrote:<br><br>&gt; Hey folks,<br>&gt;<br>&gt; How do I mock a model that is given to me by a Rails plugin? I&#39;m<br>&gt; trying to mock Session from the restful_authentication plugin but I
<br>&gt; get a number of errors telling me RSpec doesn&#39;t recognize Session.<br>&gt;<br>&gt; NameError in &#39;SessionsController handling GET /sessions/new should<br>&gt; be successful&#39;<br>&gt; uninitialized constant Session
<br><br>Your problem is that the class isn&#39;t just Session, it&#39;s<br>CGI::Session::ActiveRecordStore::Session<br><br>Brandon<br><br><br>_______________________________________________<br>rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br><br clear="all">
<br>-- <br>- Robert<br><a href="http://robertrevans.com">http://robertrevans.com</a><br><a href="http://rubysnips.com">http://rubysnips.com</a>