Fix failing spec/models/user_spec.rb
This commit is contained in:
parent
7db32c4080
commit
618fbde2b7
|
@ -3378,7 +3378,7 @@ describe User do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not require consent if usage stats were set by this user' do
|
it 'does not require consent if usage stats were set by this user' do
|
||||||
allow(Gitlab::CurrentSettings).to receive(:usage_stats_set_by_user_id).and_return(user.id)
|
create(:application_setting, usage_stats_set_by_user_id: user.id)
|
||||||
|
|
||||||
expect(user.requires_usage_stats_consent?).to be false
|
expect(user.requires_usage_stats_consent?).to be false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue