Sha256: 1c35e9bce197a90df2b15ef1d1ca768ea718560d77f78138bdb9fdfdd818845d

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 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

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.2 test/integration/js_variables_test.rb
comfortable_mexican_sofa-2.0.1 test/integration/js_variables_test.rb
comfortable_mexican_sofa-2.0.0 test/integration/js_variables_test.rb