Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2023-07-31 08:39:14 +02:00
parent a8f368b861
commit 8f446c04a9
6 changed files with 10 additions and 22 deletions

View File

@ -9,10 +9,8 @@ describe 'yaml config files' do
next unless /.*.\.yml/.match?(path)
before do
allow(Rails).to receive(:root).and_return(Pathname.new('/tmp'))
app = instance_double Rails::Application
allow(Rails).to receive(:application).and_return app
allow(Rails).to receive_messages(root: Pathname.new('/tmp'), application: app)
allow(app).to receive(:credentials).and_return({})
end