From 2052f1b855fbb1d7b817ef3f6850ec814077a892 Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Sat, 16 Nov 2013 18:24:23 +0000 Subject: [PATCH] [custom-forms] Add test to ensure the class will be there --- plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+), 0 deletions(-) diff --git a/plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb b/plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb index ce5fc1b..c14f138 100644 --- a/plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb +++ b/plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb @@ -140,5 +140,14 @@ class CustomFormsPluginMyprofileControllerTest < ActionController::TestCase assert_equal 'Cool form', form.description assert_equal 'Source', field.name end + + should 'render TinyMce Editor for description' do + form = CustomFormsPlugin::Form.create!(:profile => profile, :name => 'Free Software') + + get :edit, :profile => profile.identifier, :id => form.id + + assert_tag :tag => 'textarea', :attributes => { :id => 'form_description', :class => 'mceEditor' } + end + end -- libgit2 0.21.2