I think you best option is to test it how you use them.
Also I am sure you made other mistakes that you can refactor, and that is always a great point to add test coverage too. Find that model that got too big or shouldn't exist and work your way from there.
Usually when I am trying to add coverage I find that the code isn't easy to test because it wasn't made with tests in mind. To deal with that, I usually create a layer between what I'm trying to test/refactor, and write a test for the old functionality and then refactor it.
How big is your app? 100+ models? Is this app still having new features added?
--
--
SD Ruby mailing list
sdr...@googlegroups.com
http://groups.google.com/group/sdruby
---
You received this message because you are subscribed to the Google Groups "SD Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sdruby+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
it { should validate_presence_of :name }
--
You received this message because you are subscribed to a topic in the Google Groups "SD Ruby" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sdruby/FdcShqzYjFM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sdruby+un...@googlegroups.com.