diff options
author | Gabriel Nagy <gabriel.nagy@puppet.com> | 2021-03-11 18:15:33 +0200 |
---|---|---|
committer | Gabriel Nagy <gabriel.nagy@puppet.com> | 2021-03-11 18:16:00 +0200 |
commit | 98ef1e0e34c86bcc11e44a6902b74f52d648bb56 (patch) | |
tree | 4c3e8d9b1dffc341b346d5013aef29faa21bf161 /spec/shared_behaviours | |
parent | bd9f3aba54a6821a047f6e69b1cd15c626314736 (diff) | |
download | puppet-hosts_core-98ef1e0e34c86bcc11e44a6902b74f52d648bb56.tar.gz puppet-hosts_core-98ef1e0e34c86bcc11e44a6902b74f52d648bb56.tar.bz2 |
(maint) Switch to rspec-mocks
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)) |