Commit d7a5fabd authored by Z.J. van de Weg's avatar Z.J. van de Weg

Fix typo

parent 6f2e11fa
......@@ -37,7 +37,7 @@ describe Gitlab::ChatCommands::Presenters::IssueShow do
context 'issue with issue weight' do
let(:issue) { create(:issue, project: project, weight: 3) }
let(:weight_attachment) { subject[:attachment].find { |a| a[:title] == "Weight" } }
let(:weight_attachment) { subject[:attachments].first[:fields].find { |a| a[:title] == "Weight" } }
it 'shows the weight' do
expect(weight_attachment).not_to eq(nil)
......
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