spec/unit/puppetfile_spec.rb in r10k-3.11.0 vs spec/unit/puppetfile_spec.rb in r10k-3.12.0
- old
+ new
@@ -112,11 +112,11 @@
it "is idempotent" do
path = File.join(PROJECT_ROOT, 'spec', 'fixtures', 'unit', 'puppetfile', 'valid-forge-with-version')
subject = described_class.new(path, {})
- expect(subject.loader).to receive(:load).and_call_original.once
+ expect(subject.loader).to receive(:load!).and_call_original.once
loaded_content1 = subject.load
expect(subject.loaded?).to be true
loaded_content2 = subject.load
@@ -271,10 +271,10 @@
expect(mod1).to receive(:sync)
expect(mod2).to receive(:sync)
expect(subject).to receive(:modules).and_return([mod1, mod2])
expect(Thread).to receive(:new).exactly(pool_size).and_call_original
- expect(Queue).to receive(:new).and_call_original
+ expect(Queue).to receive(:new).and_call_original.twice
subject.accept(visitor)
end
it "Creates queues of modules grouped by cachedir" do