diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-15 13:23:32 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-15 13:23:32 +0300 |
commit | 3c5846cdaae8784ca8c91308c42a7d4f5b91ac0a (patch) | |
tree | c1ee0973d076db8a84723c19b9a8dbdf52e1064a /spec/lib/gitlab/config/entry | |
parent | 7b712d359880cb15bad4c0f01308bf12b1518e60 (diff) |
Simplify code related to setting default config values
Diffstat (limited to 'spec/lib/gitlab/config/entry')
-rw-r--r-- | spec/lib/gitlab/config/entry/configurable_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/config/entry/configurable_spec.rb b/spec/lib/gitlab/config/entry/configurable_spec.rb index 09aa7f91b83..37e38e49c0d 100644 --- a/spec/lib/gitlab/config/entry/configurable_spec.rb +++ b/spec/lib/gitlab/config/entry/configurable_spec.rb @@ -30,11 +30,11 @@ describe Gitlab::Config::Entry::Configurable do end describe 'configured entries' do - let(:another) { double('another', default: nil) } + let(:entry_class) { double('entry_class', default: nil) } before do - entry.class_exec(another) do |another| - entry :object, another, description: 'test object' + entry.class_exec(entry_class) do |entry_class| + entry :object, entry_class, description: 'test object' end end |