Commit dfef1e63 authored by Markus Koller's avatar Markus Koller

Merge branch 'fix-user-agent-detail-spec-to-support-parent-strategy' into 'master'

Refactor User Agent Detail tests to support factories parent strategy

See merge request gitlab-org/gitlab!41697
parents d79758af 34bafb59
......@@ -18,8 +18,10 @@ RSpec.describe UserAgentDetail do
end
describe '.valid?' do
let(:issue) { create(:issue) }
it 'is valid with a subject' do
detail = build(:user_agent_detail)
detail = build(:user_agent_detail, subject: issue)
expect(detail).to be_valid
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