Hello all, I'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's the error:<br>ActiveRecord::AssociationTypeMismatch in 'A new User should know what role it has'
<br>Role expected, got NilClass<br>D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in `add'<br>./spec/models/user_spec.rb:62:<br>script/spec:4:<br clear="all"><br>Here'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' 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