Hello all, I&#39;m currently having an issue with some specs, specifically scope issues (probably more of a scope issue than a spec issue at this point)...<br>Here&#39;s the error:<br>ActiveRecord::AssociationTypeMismatch in &#39;A new User should know what role it has&#39; 
<br>Role expected, got NilClass<br>D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in `add&#39;<br>./spec/models/user_spec.rb:62:<br>script/spec:4:<br clear="all"><br>Here&#39;s the user.rb<br>
<a href="http://pastie.caboo.se/87029">http://pastie.caboo.se/87029</a><br><br>role.rb<br><a href="http://pastie.caboo.se/87030">http://pastie.caboo.se/87030</a><br><br>user_spec.rb<br><a href="http://pastie.caboo.se/87032">
http://pastie.caboo.se/87032</a><br><br>The code is based off of RESTful authentication + <br>Ben Curtis&#39; user roles in Rails Application:<br><a href="http://www.bencurtis.com/archives/2007/06/user-roles-in-rails-applications/">
http://www.bencurtis.com/archives/2007/06/user-roles-in-rails-applications/</a><br><br>Thanks for your help!<br>-- <br>dp