Commit bef80e59 authored by Stan Hu's avatar Stan Hu

Fix failing spec/models/user_spec.rb

parent 81584248
...@@ -3378,7 +3378,7 @@ describe User do ...@@ -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
......
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