HomePhorge

Don't stub the database in Puppet::Rails tests.
01c8623c2b5dUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Don't stub the database in Puppet::Rails tests.

The tests for the Puppet::Rails::Host and other Rails interface class stubbed
out parts of rails, in a way that confused things later on and ended up
breaking unrelated tests ... but only when they were invoked in a very
particular order.

Thankfully, just using a scratch database is both cheap and easy here, and
makes this all just work. So, do that instead.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU01c8623c2b5d: Don't stub the database in Puppet::Rails tests. (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 29 2012, 2:34 AM