Commit e62c61b7f6b3912d6753f3c194723a8f1ef721a2
1 parent
a65b6255
Exists in
staging
and in
42 other branches
cms-test: test that align is allowed as image attribute on textile
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/cms_controller_test.rb
@@ -653,10 +653,10 @@ class CmsControllerTest < ActionController::TestCase | @@ -653,10 +653,10 @@ class CmsControllerTest < ActionController::TestCase | ||
653 | assert_match /<img.*align="right".*\/>/, saved.body | 653 | assert_match /<img.*align="right".*\/>/, saved.body |
654 | end | 654 | end |
655 | 655 | ||
656 | - should 'not be able to add image with alignment when textile' do | 656 | + should 'be able to add image with alignment when textile' do |
657 | post :new, :type => 'TextileArticle', :profile => profile.identifier, :article => { :name => 'image-alignment', :body => "the text of the article with image <img src='#' align='right'/> right align..." } | 657 | post :new, :type => 'TextileArticle', :profile => profile.identifier, :article => { :name => 'image-alignment', :body => "the text of the article with image <img src='#' align='right'/> right align..." } |
658 | saved = TextileArticle.find_by_name('image-alignment') | 658 | saved = TextileArticle.find_by_name('image-alignment') |
659 | - assert_no_match /align="right"/, saved.body | 659 | + assert_match /align="right"/, saved.body |
660 | end | 660 | end |
661 | 661 | ||
662 | should 'be able to create a new event document' do | 662 | should 'be able to create a new event document' do |