Chaining RSpec Commands
June 23rd 2011So this was a cool trick I learned today.
Rake allows you to chain commands. So lets say you want to drop the database, rerun migrations and then run specs at the end. It’s now as simple as:
So this was a cool trick I learned today.
Rake allows you to chain commands. So lets say you want to drop the database, rerun migrations and then run specs at the end. It’s now as simple as:
I recently gave at talk titled “How to win friends and influence people using HTML5 n' stuff” at Ruby|Web. If you missed the presentation or want to take a look at the slides again, go check them out on scribd…
Getting random array of records using DataMapper is pretty easy once you know what to do. First one must require dm-aggregates. Once that is done, it’s as easy as: