aboutsummaryrefslogtreecommitdiff
path: root/spec/shared_behaviours
diff options
context:
space:
mode:
authorGheorghe Popescu <gheorghe.popescu@puppet.com>2021-03-12 09:04:42 +0200
committerGitHub <noreply@github.com>2021-03-12 09:04:42 +0200
commitad33a665542a84f0c312dd255fa726f03d5826c7 (patch)
tree4c3e8d9b1dffc341b346d5013aef29faa21bf161 /spec/shared_behaviours
parentf93d4b33c0a7147346909260ee10129090c1714a (diff)
parent98ef1e0e34c86bcc11e44a6902b74f52d648bb56 (diff)
downloadpuppet-hosts_core-ad33a665542a84f0c312dd255fa726f03d5826c7.tar.gz
puppet-hosts_core-ad33a665542a84f0c312dd255fa726f03d5826c7.tar.bz2
Merge pull request #28 from GabrielNagy/MODULES-10953/update-metadata
Diffstat (limited to 'spec/shared_behaviours')
-rw-r--r--spec/shared_behaviours/all_parsedfile_providers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/shared_behaviours/all_parsedfile_providers.rb b/spec/shared_behaviours/all_parsedfile_providers.rb
index d697a14..1701fe3 100644
--- a/spec/shared_behaviours/all_parsedfile_providers.rb
+++ b/spec/shared_behaviours/all_parsedfile_providers.rb
@@ -5,7 +5,7 @@ shared_examples_for 'all parsedfile providers' do |provider, *files|
files.flatten.each do |file|
it "should rewrite #{file} reasonably unchanged" do
- provider.stubs(:default_target).returns(file)
+ allow(provider).to receive(:default_target).and_return(file)
provider.prefetch
text = provider.to_file(provider.target_records(file))