Re: [Rails] mass_assignment_sanitizer and Factories w/ rspec

2012-01-29 Thread Peter Vandenabeele
On Sun, Jan 29, 2012 at 10:52 AM, Phoenix Rising wrote: > I'm running into a bit of an issue when it comes to using > factory_girl_rails (1.6.0) with 3.2's mass_assignment_sanitizer > = :strict and I'm hoping some one can offer me some guidance to > improve my tests. > > The problem: > Say you hav

[Rails] mass_assignment_sanitizer and Factories w/ rspec

2012-01-29 Thread Phoenix Rising
I'm running into a bit of an issue when it comes to using factory_girl_rails (1.6.0) with 3.2's mass_assignment_sanitizer = :strict and I'm hoping some one can offer me some guidance to improve my tests. The problem: Say you have a test that looks like this: it "allows you to create an object" do