Commit 2052f1b855fbb1d7b817ef3f6850ec814077a892
1 parent
b88d44c4
Exists in
staging
and in
42 other branches
[custom-forms] Add test to ensure the class will be there
(ActionItem2778)
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
plugins/custom_forms/test/functional/custom_forms_plugin_myprofile_controller_test.rb
| @@ -140,5 +140,14 @@ class CustomFormsPluginMyprofileControllerTest < ActionController::TestCase | @@ -140,5 +140,14 @@ class CustomFormsPluginMyprofileControllerTest < ActionController::TestCase | ||
| 140 | assert_equal 'Cool form', form.description | 140 | assert_equal 'Cool form', form.description |
| 141 | assert_equal 'Source', field.name | 141 | assert_equal 'Source', field.name |
| 142 | end | 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 | end | 152 | end |
| 144 | 153 |