diff options
author | Gheorghe Popescu <gheorghe.popescu@puppet.com> | 2021-03-12 09:04:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 09:04:42 +0200 |
commit | ad33a665542a84f0c312dd255fa726f03d5826c7 (patch) | |
tree | 4c3e8d9b1dffc341b346d5013aef29faa21bf161 /spec/shared_behaviours | |
parent | f93d4b33c0a7147346909260ee10129090c1714a (diff) | |
parent | 98ef1e0e34c86bcc11e44a6902b74f52d648bb56 (diff) | |
download | puppet-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.rb | 2 |
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)) |