A platform for community discussion. Free, open, simple.
DEV: Restore and fix a remote_theme spec (#39595)
Jarek Radosz12a473614220
diff --git a/spec/models/remote_theme_spec.rb b/spec/models/remote_theme_spec.rbindex c3a455b66fe..9eaa92efa33 100644--- a/spec/models/remote_theme_spec.rb+++ b/spec/models/remote_theme_spec.rb@@ -540,9 +540,7 @@ RSpec.describe RemoteTheme doexpect(theme.theme_site_settings.count).to eq(0)end- # TODO (martin) Hard to test this without a better example...we don't have any- # theme site settings that are an enum with > 2 values.- xit "does not override user modified theme site settings" do+ it "does not override user modified theme site settings" doadd_to_git_repo(initial_repo,"about.json" =>@@ -557,14 +555,7 @@ RSpec.describe RemoteTheme dotheme.theme_site_settings.first.update!(value: "search_icon")- add_to_git_repo(- initial_repo,- "about.json" =>- JSON- .parse(about_json)- .merge("theme_site_settings" => { "search_experience" => "search_field" })- .to_json,- )+ add_to_git_repo(initial_repo, "common/header.html" => "a new header")theme.remote_theme.update_from_remotetheme.reload