Sha256: 8e501417ed44203f1541b5f9afbcd8995892f1869afa27ac2bf8dab985c462cb
Contents?: true
Size: 616 Bytes
Versions: 10
Compression:
Stored size: 616 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class TinyMCETest < ActiveSupport::TestCase test "including tiny mce module into a class should provide uses_tiny_mce method" do test_controller = TestController.new assert !test_controller.class.respond_to?(:uses_tiny_mce) TestController.send(:include, TinyMCE) assert test_controller.class.respond_to?(:uses_tiny_mce) end test "tiny mce plugin is included into action controller base and uses_tiny_mce method available" do assert ActionController::Base::TinyMCE assert ApplicationController.respond_to?(:uses_tiny_mce) end end
Version data entries
10 entries across 10 versions & 3 rubygems