discourse/spec/fabricators/theme_fabricator.rb
Martin Brennan e708c99e12
FIX: Hide broken theme about/license URLs (#29930)
At the top of the theme show page we have a link
to the theme About and License, which are supposed
to be URLs. However some themes have left placeholder
text in these metadata fields, which leads to a wonky
experience.

Instead, we can just not serialize these fields if they
are not valid URLs, then they will not show as links
in the UI.
2024-11-26 13:53:10 +10:00

11 lines
273 B
Ruby

# frozen_string_literal: true
Fabricator(:theme) do
name { sequence(:name) { |i| "Cool theme #{i + 1}" } }
user
end
Fabricator(:remote_theme) { remote_url { "https://github.com/org/testtheme.git" } }
Fabricator(:theme_with_remote_url, from: :theme) { remote_theme }