We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a4c8a commit ec112deCopy full SHA for ec112de
spec/integration/node/facts_spec.rb
@@ -30,9 +30,9 @@
30
it "should be able to delegate to the :facter terminus" do
31
allow(Puppet::Node::Facts.indirection).to receive(:terminus_class).and_return(:facter)
32
33
- expect(Facter).to receive(:resolve).and_return("facter_hash")
+ expect(Facter).to receive(:resolve).and_return({1 => 2})
34
facts = Puppet::Node::Facts.new("me")
35
- expect(Puppet::Node::Facts).to receive(:new).with("me", "facter_hash").and_return(facts)
+ expect(Puppet::Node::Facts).to receive(:new).with("me", {1 => 2}).and_return(facts)
36
37
expect(Puppet::Node::Facts.indirection.find("me")).to equal(facts)
38
end
0 commit comments