HomePhorge

(#6771) Check for ActiveRecord::Base instead of Puppet.features.rails?
e81de1e07400Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#6771) Check for ActiveRecord::Base instead of Puppet.features.rails?

Without this patch there are false positive failures in situations where
a test case stubs Puppet.features.rails?. This is the case in
spec/integration/defaults_spec.rb.

This patch fixes the problem by only calling the remove_connection
method if ActiveRecord::Base is defined.

Reviewed-by: Daniel Pittman

Details

Provenance
Jeff McCune <jeff@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3892875a5e97: (#6771) Stop other AR connection handling.
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPUe81de1e07400: (#6771) Check for ActiveRecord::Base instead of Puppet.features.rails? (authored by Jeff McCune <jeff@puppetlabs.com>).Jan 25 2012, 11:40 PM