Hi -- I have a model that has a name attribute, and a method I'm speccing to remove all models from a collection if they have a name that starts with an underscore. My problem is that RSpec seems to be overwriting the name attribute, so the spec is failing when (I'm pretty sure) it should be passing. When I run it, none of the underscore-prefixed models are removed, and RSpec's complaint lists all the models that were in the original list, but with names like "Model_1007", "Model_1008" -- basically, the kinds of names that mock_model might give. Can anyone advise? Thanks, Doug.
on 2009-04-30 09:59
on 2009-04-30 10:25
Please ignore me, I'm a drooling moron. :) 2009/4/30 doug livesey <email@example.com>