- View first, then Controller and Model last.
- In Controller tests:
- Don't mock ActiveRecord method
- Do stub ActiveRecord method (No real SQL execution allowed)
- Do mock custom model method
- Use signature from model mock to create real method in model (or module)
- Should not contain more than 5 lines or 10 function calls
- In Model tests:
- Do real SQL execution (No mock, no stub)
Saturday, March 3, 2012
Personal (and non-popular) Rails development rules of thumb
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
Put your cursor on the text box of the post/comment you want to indent Go to the menubar at the top of the screen Edit > Emoji & ...
-
I ran to this error the other day when I tried to export a dump file from a slave Postgres database. cpg_dump: Dumping the contents of ta...