Commit 34bafb59 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu Committed by Eugenia Grieff

Fix user agent detail spec

Create the subject association explicitly because these are no longer
created when just building from factories
parent 11de28fd
......@@ -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