Archive for December, 2007

Camping on IRB

December 22nd, 2007

IRB is a great tool. What about testing parts of a Camping app in IRB (meaning App::Models module) ? Just require the app, but do not forget to establish the (in case of using it) ActiveRecord connection, that problably is specified in dispatch.rb
Try this, using _Why’s Blog webapp example:

$ cd /path/to/blog/app
$ irb
irb(main):001:0> require ‘rubygems’
irb(main):002:0> require […]