Sha256: 7cd45281fd622825625aad2782bd868c29c3ff1a51cc7626ad6ba6c32eb0c059

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 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.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-1.12.7 test/integration/js_variables_test.rb
comfortable_mexican_sofa-1.12.6 test/integration/js_variables_test.rb
comfortable_mexican_sofa-1.12.5 test/integration/js_variables_test.rb