Skip to content

Works with Merb and DataMapper

laurynasl edited this page Sep 13, 2010 · 10 revisions

Installation

Put hornsby’s directory at MERB_ROOT/lib/hornsby


$ cd lib
$ git clone git://github.com/laurynasl/hornsby.git

Put the following lines to spec/spec_helper.rb (after line require 'spec'):


require Merb.root / 'lib/hornsby/lib/hornsby'
Hornsby.orm = :datamapper
Hornsby.load(Merb.root / 'spec' / 'hornsby_scenarios.rb')

And one more line in Spec::Runner::Configure:


config.include(HornsbySpecHelper)

Clone this wiki locally