Tag: pattern
Populate database pattern - why is it so cool?
Aug.26, 2010
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.
(continue reading…)
2 Comments
:data, database, fake, pattern, populate, ruby
more...
Ultimate rspec matcher to test validation
Jun.30, 2010
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.
(continue reading…)
3 Comments
:ActiveRecord, pattern, rails, rspec, validation
more...