From abe0ae5096c0f89283f7b3188d82b8acb34043c7 Mon Sep 17 00:00:00 2001 From: Jonathan Hefner Date: Sun, 24 Dec 2023 11:39:42 -0600 Subject: [PATCH] Add CHANGELOG entry for #345 Follow-up to 87683a14e85b0d5cc311aa8e65dd6d2765fe02ef. This adds a CHANGELOG entry, plus a minor code cleanup. --- CHANGELOG.md | 1 + spec/postprocessor_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 653bff51..6afb49a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Main (3.0.0.alpha) * [#320](https://github.com/rails/sdoc/pull/320) Remove jQuery [@jonathanhefner](https://github.com/jonathanhefner) * [#322](https://github.com/rails/sdoc/pull/322) Use `type="search"` for search input [@jonathanhefner](https://github.com/jonathanhefner) * [#323](https://github.com/rails/sdoc/pull/323) Update favicon [@jonathanhefner](https://github.com/jonathanhefner) +* [#345](https://github.com/rails/sdoc/pull/345) Version explicit links to `api.rubyonrails.org` [@jonathanhefner](https://github.com/jonathanhefner) 2.6.1 ===== diff --git a/spec/postprocessor_spec.rb b/spec/postprocessor_spec.rb index c481e3e8..1be2b9bc 100644 --- a/spec/postprocessor_spec.rb +++ b/spec/postprocessor_spec.rb @@ -72,9 +72,9 @@ HTML with_env("HORO_PROJECT_VERSION" => "3.2.1", "HORO_PROJECT_NAME" => "My Rails Gem") do - postprocessed = _(SDoc::Postprocessor.process(rendered)) - postprocessed.must_include %(Learn more) - postprocessed.must_include %(Testing) + postprocessed = SDoc::Postprocessor.process(rendered) + _(postprocessed).must_include %(Learn more) + _(postprocessed).must_include %(Testing) end end