Skip to content
代码片段 群组 项目
提交 2f17bb43 编辑于 作者: Peter Leitzen's avatar Peter Leitzen
浏览文件

Merge branch 'issue_savebang_rubocop' into 'master'

Fix Rails/SaveBang offenses

See merge request gitlab-org/gitlab!81246
No related branches found
No related tags found
无相关合并请求
---
Rails/SaveBang:
Exclude:
- ee/spec/lib/analytics/merge_request_metrics_calculator_spec.rb
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
describe '#first_reassigned_at' do describe '#first_reassigned_at' do
it 'returns earliest non-author assignee creation timestamp' do it 'returns earliest non-author assignee creation timestamp' do
merge_request.merge_request_assignees.create(assignee: merge_request.author, created_at: 5.days.ago) merge_request.merge_request_assignees.create!(assignee: merge_request.author, created_at: 5.days.ago)
merge_request.merge_request_assignees.create(assignee: create(:user), created_at: 3.days.ago) merge_request.merge_request_assignees.create!(assignee: create(:user), created_at: 3.days.ago)
merge_request.merge_request_assignees.create(assignee: create(:user), created_at: 1.day.ago) merge_request.merge_request_assignees.create!(assignee: create(:user), created_at: 1.day.ago)
expect(subject.first_reassigned_at).to be_like_time(3.days.ago) expect(subject.first_reassigned_at).to be_like_time(3.days.ago)
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册