DEV: Fix a theme_js spec (#19043)

It was failing in the local env
This commit is contained in:
Jarek Radosz 2022-11-16 09:12:17 +01:00 committed by GitHub
parent 5c4a2d428a
commit bd38b6dcc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ RSpec.describe ThemeJavascriptsController do
expect(response.body).to include( expect(response.body).to include(
"require(\"discourse/lib/theme-settings-store\").registerSettings(" + "require(\"discourse/lib/theme-settings-store\").registerSettings(" +
"#{component.id}, {\"num_setting\":5,\"theme_uploads\":{\"vendorlib\":" + "#{component.id}, {\"num_setting\":5,\"theme_uploads\":{\"vendorlib\":" +
"\"/uploads/default/test_#{ENV['TEST_ENV_NUMBER']}/original/1X/#{js_upload.sha1}.js\"},\"theme_uploads_local\":{\"vendorlib\":" + "\"/uploads/default/test_#{ENV['TEST_ENV_NUMBER'].presence || '0'}/original/1X/#{js_upload.sha1}.js\"},\"theme_uploads_local\":{\"vendorlib\":" +
"\"/theme-javascripts/#{js_upload.sha1}.js?__ws=test.localhost\"}}, { force: true });" "\"/theme-javascripts/#{js_upload.sha1}.js?__ws=test.localhost\"}}, { force: true });"
) )
expect(response.body).to include("assert.ok(true);") expect(response.body).to include("assert.ok(true);")