Commit 2052f1b855fbb1d7b817ef3f6850ec814077a892

Authored by Daniela Feitosa
1 parent b88d44c4

[custom-forms] Add test to ensure the class will be there

(ActionItem2778)
plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb
... ... @@ -140,5 +140,14 @@ class CustomFormsPluginMyprofileControllerTest < ActionController::TestCase
140 140 assert_equal 'Cool form', form.description
141 141 assert_equal 'Source', field.name
142 142 end
  143 +
  144 + should 'render TinyMce Editor for description' do
  145 + form = CustomFormsPlugin::Form.create!(:profile => profile, :name => 'Free Software')
  146 +
  147 + get :edit, :profile => profile.identifier, :id => form.id
  148 +
  149 + assert_tag :tag => 'textarea', :attributes => { :id => 'form_description', :class => 'mceEditor' }
  150 + end
  151 +
143 152 end
144 153  
... ...