mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Ignore disabled out-of-date remote themes (#10870)
No need to alert in admin dashboard about out of date remote themes that are disabled.
This commit is contained in:
@ -245,6 +245,13 @@ describe RemoteTheme do
|
||||
remote.update!(local_version: "new version", commits_behind: 0)
|
||||
expect(described_class.out_of_date_themes).to eq([])
|
||||
end
|
||||
|
||||
it "ignores disabled out of date themes" do
|
||||
remote.update!(local_version: "old version", remote_version: "new version", commits_behind: 2)
|
||||
theme.update!(enabled: false)
|
||||
expect(described_class.out_of_date_themes).to eq([])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context ".unreachable_themes" do
|
||||
|
Reference in New Issue
Block a user