Skip to content

Commit ec112de

Browse files
committed
(PUP-11717) Fix bad test
The Facter.resolve method returns a hash (or subclass), but never a string.
1 parent a2a4c8a commit ec112de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/integration/node/facts_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
it "should be able to delegate to the :facter terminus" do
3131
allow(Puppet::Node::Facts.indirection).to receive(:terminus_class).and_return(:facter)
3232

33-
expect(Facter).to receive(:resolve).and_return("facter_hash")
33+
expect(Facter).to receive(:resolve).and_return({1 => 2})
3434
facts = Puppet::Node::Facts.new("me")
35-
expect(Puppet::Node::Facts).to receive(:new).with("me", "facter_hash").and_return(facts)
35+
expect(Puppet::Node::Facts).to receive(:new).with("me", {1 => 2}).and_return(facts)
3636

3737
expect(Puppet::Node::Facts.indirection.find("me")).to equal(facts)
3838
end

0 commit comments

Comments
 (0)