Commit d656db6f authored by Arturo Herrero's avatar Arturo Herrero

Fix kwargs deprecation warnings in config entry specs

This commit fixes the warning:

Passing the keyword argument as the last hash parameter is deprecated.
parent d53fe218
......@@ -361,7 +361,7 @@ RSpec.describe Gitlab::Ci::Config::Entry::Processable do
context 'when root yaml variables are used' do
let(:variables) do
Gitlab::Ci::Config::Entry::Variables.new(
A: 'root', C: 'root', D: 'root'
{ A: 'root', C: 'root', D: 'root' }
).value
end
......
......@@ -15,7 +15,7 @@ RSpec.describe Gitlab::Config::Entry::Configurable do
describe 'validations' do
context 'when entry is a hash' do
let(:instance) { entry.new(key: 'value') }
let(:instance) { entry.new({ key: 'value' }) }
it 'correctly validates an instance' do
expect(instance).to be_valid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment