From 98ef1e0e34c86bcc11e44a6902b74f52d648bb56 Mon Sep 17 00:00:00 2001 From: Gabriel Nagy Date: Thu, 11 Mar 2021 18:15:33 +0200 Subject: (maint) Switch to rspec-mocks --- spec/shared_behaviours/all_parsedfile_providers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/shared_behaviours') 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)) -- cgit v1.2.3