> This is one example of how global variables suck.
> 
> Also your code doesn't make sense to me. I'd you called it twice, each
> with different users, you would get the same result which is prob not
> what you want.

Yup, that's why I corrected it. Now the method is an instance method of 
User, so I call it as following:

current_user.membership_expiry_date
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to