Commit 3ef60724b979c4b71e2fdba1d9ee6a9a2db35921
1 parent
1b7dcab6
Exists in
master
and in
28 other branches
cms_controller: add test for mandatory fields in blog creation form
ActionItem2762
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
test/functional/cms_controller_test.rb
| ... | ... | @@ -932,6 +932,11 @@ class CmsControllerTest < ActionController::TestCase |
| 932 | 932 | assert_tag :tag => 'a', :content => 'Cancel', :attributes => { :href => /\/myprofile\/#{profile.identifier}/ } |
| 933 | 933 | end |
| 934 | 934 | |
| 935 | + should 'have only one mandatory field in the blog creation form' do | |
| 936 | + get :new, :profile => profile.identifier, :type => Blog.name | |
| 937 | + assert_select '.required-field .formfieldline', 1 | |
| 938 | + end | |
| 939 | + | |
| 935 | 940 | should 'create icon upload file in folder' do |
| 936 | 941 | f = Gallery.create!(:name => 'test_folder', :profile => profile) |
| 937 | 942 | post :new, :profile => profile.identifier, | ... | ... |