[rspec-users] Using Mock / Datamapper / Associations
ashley.moran at patchspace.co.uk
Sat Nov 14 08:54:54 EST 2009
On Nov 13, 2009, at 6:04 pm, Arco wrote:
> Is there a way to mock the Org object, without having to require it in
> my test setup ??
Are you running the spec through something that loads a code loader (eg: for my specs, spec_helper.rb starts Merb in the test environment), or just running that one file on its own? That's the simplest way I can think this would be failing.
More information about the rspec-users