I've tried to go about this the TDD way. I haven't been testing so much at work... well I dont even use Rails at work either :)
Some examples-
Nothing terribly difficult here, at least now, but these tests have saved me from times when I thought I was only updating one thing, but actually changed the structure much deeper.
OH, another WAY cool thing is a "seed". I want to test how this site reacts with a lot of users.
The faker gem rules and allows me to seed my db:
Also know that I created some other users there for testing (some admins, some not). Ok, back to my admin work.
Some examples-
OH, another WAY cool thing is a "seed". I want to test how this site reacts with a lot of users.
The faker gem rules and allows me to seed my db:
Also know that I created some other users there for testing (some admins, some not). Ok, back to my admin work.
No comments:
Post a Comment