The bingo card ran inside the asxpio container, dispatched by Host. Give the public site its own repo, image and deploy so it can be released and mirrored independently of asxp.io. Editing stays in the asxp.io admin, which keeps owning the schema and the photo pipeline; this app only reads the shared bingo tables and the bingo/ photos, through a read-only DB role and MinIO user. Tests load a snapshot of the asxpio-built schema (test/schema.sql). Assisted-by: Claude:opus-5
13 lines
534 B
Ruby
13 lines
534 B
Ruby
require_relative 'test_helper'
|
|
|
|
# A template with unbalanced <% end %> only fails when that page is
|
|
# rendered; compile every view up front so CI catches it regardless.
|
|
class TemplatesTest < Minitest::Test
|
|
Dir[File.join(__dir__, '..', 'views', '**', '*.erb')].each do |path|
|
|
name = path.sub(%r{.*/views/}, '').tr('/.', '__')
|
|
define_method("test_compiles_#{name}") do
|
|
tmpl = Tilt::ErubiTemplate.new(path, escape_html: true)
|
|
tmpl.send(:compiled_method, [], Object) # raises SyntaxError if broken
|
|
end
|
|
end
|
|
end
|