mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-22 01:01:49 +08:00
System themes were introduced here - https://github.com/discourse/discourse/pull/32681 In this PR, Horizon is imported.
9 lines
275 B
Ruby
Vendored
9 lines
275 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
RSpec.describe SystemThemesManager do
|
|
it "is idempotent" do
|
|
Theme.delete_all
|
|
expect { SystemThemesManager.sync! }.to change { Theme.system.count }.by(2)
|
|
expect { SystemThemesManager.sync! }.not_to change { Theme.count }
|
|
end
|
|
end
|