[rspec-users] class variables different between spec and runtime?
Peter Fitzgibbons
peter.fitzgibbons at gmail.com
Tue Dec 22 10:14:28 EST 2009
Hello Folks,
This gist http://gist.github.com/261791 has an example user.rb, user_spec.rb
At runtime, this snippet fails
u = User.find(123)
u.update_with_profile({...})
The error occurred while evaluating nil.select):
app/models/user.rb:6:in `moderator_fields'
app/models/user.rb:118:in `update_with_profile'
The spec passes all-green.
Could you tell me how this might be ?
Thanks,
Peter Fitzgibbons
(847) 687-7646
Email: peter.fitzgibbons at gmail.com
IM GTalk: peter.fitzgibbons
IM AOL: peter.fitzgibbons at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20091222/26233577/attachment.html>
More information about the rspec-users
mailing list