summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload.rb
diff options
context:
space:
mode:
authorNick Lewis <nick@puppetlabs.com>2010-12-13 17:07:33 -0800
committerNick Lewis <nick@puppetlabs.com>2010-12-13 17:15:12 -0800
commit7f4e058133a0aa6b07bd3402cf01009818066d32 (patch)
tree43ea4fbe3cd97f6c1474db025a3ad5e2d4cfaa9f /lib/puppet/util/autoload.rb
parent93526712755d5c30e020754a6f759b204921f423 (diff)
downloadpuppet-7f4e058133a0aa6b07bd3402cf01009818066d32.tar.gz
puppet-7f4e058133a0aa6b07bd3402cf01009818066d32.tar.xz
puppet-7f4e058133a0aa6b07bd3402cf01009818066d32.zip
(#4487) Fix environment column in hosts table
An entire environment object was being stored in a string field, causing the ZAML form of the environment to be stored. This was over-ridden to return just the ZAML serialized version of the name. Since the hosts model didn't know how to interpret a serialized value, it just returned the ZAML string as the environment. This patch stringifies the environment before putting it in the hosts table, which stores it properly. This patch also introduces a new method of testing using Tableless ActiveRecord models, which emulate their database schema. This helps to eliminate some stubbing, but it is still impossible to fully and accurately test all ActiveRecord interactions without a real database. Paired-With: Matt Robinson
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions