mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 19:04:11 +08:00
FEATURE: Show diff of local changes before updating remote theme (#7443)
This commit is contained in:
@ -378,4 +378,13 @@ describe Admin::ThemesController do
|
||||
expect(response.status).to eq(400)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#diff_local_changes' do
|
||||
let(:theme) { Fabricate(:theme) }
|
||||
|
||||
it "should return empty for a default theme" do
|
||||
get "/admin/themes/#{theme.id}/diff_local_changes.json"
|
||||
expect(response.body).to eq("{}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user