Commit 4013d322 authored by Committed by Rob Browning
(maint) Use a real scope object for terminus testing
Changes coming in Puppet 5.0.0 change how Puppet::Parser::Resource instances set default values; in specific they do so upon object construction which requires a functioning(ish) scope object. The Puppetdb terminus specs were relying on the scope object being relatively simple and easily stubbed but this change in defaults makes it much harder to treat the scope object as an easily stubbed object. To simplify stubbing and potentially reduce future breakage this commit changes the scope stubbing to partially stub a full scope object instead of creating a pure stub object and adding methods as necessary. By using a full scope object we can let the internal APIs of Puppet handle implementation changes.
Showing with 4 additions and 1 deletion