提交 618fbde2 编写于 作者: S Stan Hu

Fix failing spec/models/user_spec.rb

上级 7db32c40
...@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册