Fix failing spec/models/user_spec.rb

This commit is contained in:
Stan Hu 2019-07-02 01:14:59 -07:00
parent 7db32c4080
commit 618fbde2b7
1 changed files with 1 additions and 1 deletions

View File

@ -3378,7 +3378,7 @@ describe User do
end
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
end