Sha256: b7cb32d89698f74cd8eba909db4654c59cda995eacc4b6b1b540e49fdb49bd8d
Contents?: true
Size: 571 Bytes
Versions: 5
Compression:
Stored size: 571 Bytes
Contents
require_relative "../test_helper" class JsVariablesIntegrationTest < ActionDispatch::IntegrationTest def test_redactor_js_variables site = comfy_cms_sites(:default) r :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
5 entries across 5 versions & 1 rubygems