Commit ec10de7a authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Use specific rspec matcher

Now `be_nil` vs `eq(nil`
parent d7a5fabd
......@@ -40,7 +40,7 @@ describe Gitlab::ChatCommands::Presenters::IssueShow do
let(:weight_attachment) { subject[:attachments].first[:fields].find { |a| a[:title] == "Weight" } }
it 'shows the weight' do
expect(weight_attachment).not_to eq(nil)
expect(weight_attachment).not_to be_nil
expect(weight_attachment[:value]).to be(3)
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