Commit 9679f4e1 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '258994-fix-deprecation-config-entry' into 'master'

Fix kwargs deprecation warnings in config entry specs

See merge request gitlab-org/gitlab!48889
parents 4b5df619 d656db6f
......@@ -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