Showing posts with label pattern. Show all posts
Showing posts with label pattern. Show all posts

Populate database pattern - why is it so cool?

Once my co-worker propose an idea to fill database with some fake data because we didn't have a gui forms yet and we have to show something that works to customer. That was a start for great pattern - populator.

Ultimate rspec matcher to test validation

After a first thousand of tests using Rspec I fount it very annoying to repeat my self testing the standard code as spec code is usually twice longer than code it test. I've started to look for a way to simplify the patterns and make it reusable. Among other nice rspec tricks there is possibility to write custom Rspec matchers. Spec the validation is just two lines of code for each attribute now.
Copyright © Spesial Unik. All rights reserved. Template by CB. Theme Framework: Responsive Design