Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Updating Deeply Nested Attributes with RSpec | Better HN
Updating Deeply Nested Attributes with RSpec
(noelworden.com)
12 points · by
mooreds
· 9y ago · 1 comment
Comments
[–]
zaqokm321
9y ago
I gather because you linked to FactoryGirl, that you are using it, so you might want to take a look at FactoryGirl#attributes_for. This should tidy up the large post body text, and also help the Law Of Demeter issues with variables like @mms_price.