Hacker News new | comments | show | ask | jobs | submit login
Updating Deeply Nested Attributes with RSpec (noelworden.com)
12 points by mooreds 42 days ago | hide | past | web | 1 comment | favorite



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.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: