apneadiving
2012-Feb-03 22:29 UTC
[rspec-users] rails memoize and reload class => error raised
Hi, That''s a bit off topic but since I use Spork + Rspec... Well, my classes are reloaded between each test wave so Rails'' "memoize" method raises an error (which is expected, see code: http://rubydoc.info/docs/rails/3.0.0/ActiveSupport/Memoizable:memoize) Anyone resolved this issue with an elegant solution?
Justin Ko
2012-Feb-03 23:56 UTC
[rspec-users] rails memoize and reload class => error raised
On Feb 3, 2012, at 3:29 PM, apneadiving wrote:> Hi, > > That''s a bit off topic but since I use Spork + Rspec... > > Well, my classes are reloaded between each test wave so Rails'' > "memoize" method raises an error (which is expected, see code: > http://rubydoc.info/docs/rails/3.0.0/ActiveSupport/Memoizable:memoize) > > Anyone resolved this issue with an elegant solution? > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersDon''t use #memoize, use `||=`