Skip to content
代码片段 群组 项目
未验证 提交 38000288 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Fix order-dependent test when linting audit event factories

Previously if you ran this:

```
FOSS_ONLY=1 bundle exec rspec spec/models/audit_event_spec.rb \
    spec/support/shared_examples/lint_factories_shared_examples.rb
```

The shared example file hooks into whatever example groups are loading
and attempts to lint them, which is why the audit event model has to
run.

This would fail with `NameError: uninitialized constant
Gitlab::Audit::InstanceScope` because instance-type audit events are
only implemented in EE. To avoid this error, only define the
`instance_type` trait in EE.
上级 40349a55
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册