diff --git a/common/spec/dependabot/pull_request_creator/message_builder/metadata_presenter_spec.rb b/common/spec/dependabot/pull_request_creator/message_builder/metadata_presenter_spec.rb index e5f64d97909..f041869d591 100644 --- a/common/spec/dependabot/pull_request_creator/message_builder/metadata_presenter_spec.rb +++ b/common/spec/dependabot/pull_request_creator/message_builder/metadata_presenter_spec.rb @@ -65,6 +65,22 @@ it "removes all content after the 50th line" do expect(presenter.to_s).not_to include("## 1.0.0 - June 11, 2014") end + + context "with an azure source" do + let(:source) { Dependabot::Source.new(provider: "azure", repo: "gc/bp") } + + it "adds a truncation notice" do + expect(presenter.to_s).to include("(truncated)") + end + + it "does not include a closing table fragment" do + expect(presenter.to_s).not_to include(">") + end + + it "removes all content after the 50th line" do + expect(presenter.to_s).not_to include("## 1.0.0 - June 11, 2014") + end + end end end end