Commit 0f52c1ab authored by Vitali Tatarintev's avatar Vitali Tatarintev

Check a body text for Issue Comment command

parent 53a0118e
......@@ -28,6 +28,12 @@ describe Gitlab::SlashCommands::IssueComment do
it 'creates a new comment' do
expect { subject }.to change { issue.notes.count }.by(1)
end
it 'a new comment has a correct body' do
subject
expect(issue.notes.last.note).to eq('Comment body')
end
end
context 'when comment body does not exist' do
......
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