[LRUG] Cucumber and mass assignment whitelisting
Jay Caines-Gooby
jay at gooby.org
Tue Feb 16 00:48:18 PST 2010
Hiya,
I'm a long time lurker. I'm doing The Right ThingTM with a new project
and it's Cucumber, Machinist, Haml and Sass all the way. Loving Sass
mixins!
My question:
If I'm white-listing my model attributes from mass-assignment with an
initializer in security.rb:
ActiveRecord::Base.send(:attr_accessible, nil)
my tests fail horribly, because cucumber, machinist et al are using
mass assignment to create the test objects.
Is there a way to make the two play nicely together?
--
Jay Caines-Gooby
http://jay.gooby.org
jay at gooby.org
+44 (0)7956 182625
twitter, skype & aim: jaygooby
gtalk: jaygooby at gmail.com
More information about the Chat
mailing list