aboutsummaryrefslogtreecommitdiff
path: root/spec/shared_behaviours/all_parsedfile_providers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/shared_behaviours/all_parsedfile_providers.rb')
-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))