Commit 5700ee72 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove "let options"

parent 48e6d2dc
...@@ -117,8 +117,7 @@ describe Gitlab::LDAP::Access, lib: true do ...@@ -117,8 +117,7 @@ describe Gitlab::LDAP::Access, lib: true do
end end
describe '#update_permissions' do describe '#update_permissions' do
subject { access.update_permissions(options) } subject { access.update_permissions({}) }
let(:options) { Hash.new }
it 'does update group permissions with a group base configured' do it 'does update group permissions with a group base configured' do
allow(access).to receive_messages(group_base: 'my-group-base') allow(access).to receive_messages(group_base: 'my-group-base')
...@@ -149,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do ...@@ -149,7 +148,7 @@ describe Gitlab::LDAP::Access, lib: true do
end end
context 'when synchronously updating group permissions' do context 'when synchronously updating group permissions' do
let(:options) { { update_ldap_group_links_synchronously: true } } subject { access.update_permissions(update_ldap_group_links_synchronously: true) }
it 'updates group permissions directly' do it 'updates group permissions directly' do
allow(access).to receive_messages(group_base: 'my-group-base') allow(access).to receive_messages(group_base: 'my-group-base')
......
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