Commit 6c3e59a5 authored by brian m. carlson's avatar brian m. carlson

Ensure autogenerated title does not cause failing spec

Hardcode the title into the object in the spec, so that an autogenerated
title (such as one starting with "O") does not cause the spec to fail.
parent 256a7735
---
title: Ensure autogenerated title does not cause failing spec
merge_request: 8963
author: brian m. carlson
......@@ -245,6 +245,8 @@ describe SystemNoteService, services: true do
end
describe '.change_title' do
let(:noteable) { create(:issue, project: project, title: 'Lorem ipsum') }
subject { described_class.change_title(noteable, project, author, 'Old title') }
context 'when noteable responds to `title`' do
......@@ -252,7 +254,7 @@ describe SystemNoteService, services: true do
it 'sets the note text' do
expect(subject.note).
to eq "changed title from **{-Old title-}** to **{+#{noteable.title}+}**"
to eq "changed title from **{-Old title-}** to **{+Lorem ipsum+}**"
end
end
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