HomePhorge

Fix stubbing of ActiveRecord that doesn't work in AR 3.2.*
3857e2b3ac62Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix stubbing of ActiveRecord that doesn't work in AR 3.2.*

These tests worked really hard to try and stub out the AR stack and avoid
using a database - which worked, until the AR 3.2 series changed their
internals and so the stubbing stopped working.

Instead, rewrite the tests to actually use a database. Works much better and
catches way more errors, even if the tests run marginally less often.
Honestly, though, almost everything here is database layer behaviour...

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

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUdd6d36cbb096: Fix Rails compatibility code to be less stupid.
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU3857e2b3ac62: Fix stubbing of ActiveRecord that doesn't work in AR 3.2.* (authored by Daniel Pittman <daniel@puppetlabs.com>).Feb 15 2012, 12:08 AM