aboutsummaryrefslogtreecommitdiff
path: root/spec/shared_behaviours
diff options
context:
space:
mode:
authorMelissa Stone <melissa@puppet.com>2018-05-18 10:41:13 -0700
committerMelissa Stone <melissa@puppet.com>2018-05-18 11:14:56 -0700
commit99b8aef830b2eabaf3a217eb08da6deb12e5f8c7 (patch)
tree23ee32cb7a9d5db96013bff3b7c4f6ff4b145804 /spec/shared_behaviours
parentf308ce451412c0569a1c4b726f185fa4cc1a5b3e (diff)
downloadpuppet-mailalias_core-99b8aef830b2eabaf3a217eb08da6deb12e5f8c7.tar.gz
puppet-mailalias_core-99b8aef830b2eabaf3a217eb08da6deb12e5f8c7.tar.bz2
(maint) Mock with rspec not mocha
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))