locomotivecms/engine — pull request #486 by markwpearce (2012-08-16 15:36:09+00:00)
Title: With_scope attributes should be cloned when rendering - fix

I found that using a With_scope tag inside a for loop gave incorrect results for iterations greater than 1. The reason was because the "atrributes" hash was being modified dureing the render, because it was not being cloned before it was put through the "decode" method. This fix changes that, and adds a spec to test it.