HomePhorge

Fix terminus testing for Ruby 1.9
b5a73b6dc298Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix terminus testing for Ruby 1.9

The order of evaluation of abstract classes (Class.new) changed in Ruby 1.9,
resulting in the hacks here that worked around the "must be bound to a
constant" rules in the indirector starting to fail.

Technically, though, we don't actually care: we can define a whole class stack
properly, binding everything the way the system expects, and then clean it up
afterwards.

Less stubbing, better tests, and clearer logic, all of which are pretty nice.

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
rPU7d8fd144949f: Replace Puppet::Util::FileLocking with atomic `replace_file`
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPUb5a73b6dc298: Fix terminus testing for Ruby 1.9 (authored by Daniel Pittman <daniel@puppetlabs.com>).Mar 30 2012, 9:15 PM