Sha256: 46e2ea2663ac9b933ddf7c5aef6d94cc032a14055cfb5935bf3c812b852142cc

Contents?: true

Size: 937 Bytes

Versions: 1

Compression:

Stored size: 937 Bytes

Contents

require 'test_helper'

class FckkeditorTest < ActionController::IntegrationTest
  include Cms::IntegrationTestHelper

  def setup
    login_as_cms_admin
  end

  def test_fckeditor_select
    get new_cms_html_block_url
    assert_response :success
    
    assert_tag :tag => "select",
               :attributes => { :id => "dhtml_selector", 
                                :onchange =>  "toggleEditor('html_block_content', this)"}, 
               :child => { :tag => "option", :content =>  "Rich Text" }
  end
  def test_fckeditor_js_added
    get new_cms_html_block_url
    assert_response :success
    
    assert_tag :tag => "script",
               :attributes => { :src => /^\/bcms\/fckeditor\/fckeditor.js.*/} 
  end
  def test_no_ckeditor_js_added
    get new_cms_html_block_url
    assert_response :success
    
    assert_no_tag :tag => "script",
               :attributes => { :src => /^\/bcms\/ckeditor\/.*/} 
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcms_fckeditor-1.1.0 test/integration/cms/fckeditor_test.rb