Sha256: f0fdd6154bc3bda9f5e10ecb792b03c026d00d0b9388b31641cb1e0126098bf2
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
require_relative '../test_helper' class JsVariablesIntegrationTest < ActionDispatch::IntegrationTest def test_redactor_js_variables site = comfy_cms_sites(:default) http_auth :get, comfy_admin_cms_site_pages_path(site) assert_response :success js_vars = <<-HTML.strip_heredoc <script> CMS.file_upload_path = '#{comfy_admin_cms_site_files_path(site)}'; CMS.pages_path = '#{comfy_admin_cms_site_pages_path(site)}'; CMS.locale = 'en'; </script> HTML assert response.body.match(js_vars) end end
Version data entries
4 entries across 4 versions & 1 rubygems