About page links to the source code and the running commit

APP_REPOSITORY_URL overrides the repository for a fork.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-07 10:38:41 -05:00
1 parent 61c3749793
commit bed07386ef
3 files changed
+16 -2

No files matched your search

+2 -1
View File
@@ -15,7 +15,8 @@ class AdminAboutTest < ActionDispatch::IntegrationTest
get admin_about_path
end
assert_response :success
assert_select "[data-revision]", text: "abc1234"
assert_select "[data-revision] a[href='#{SystemInfo::REPOSITORY_URL}/commit/abc1234']", text: "abc1234"
assert_select "a[href='#{SystemInfo::REPOSITORY_URL}']", text: "Source code"
body = response.body
[ RUBY_VERSION, Rails.version, SQLite3::SQLITE_VERSION, Gem.loaded_specs["turbo-rails"].version.to_s ].each { assert_includes body, _1 }
assert_includes body, "on (#{LogbookTranscriber::MODEL})"