From e62c61b7f6b3912d6753f3c194723a8f1ef721a2 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 28 May 2014 21:31:36 +0000 Subject: [PATCH] cms-test: test that align is allowed as image attribute on textile --- test/functional/cms_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/cms_controller_test.rb b/test/functional/cms_controller_test.rb index 5f9be5b..4332a15 100644 --- a/test/functional/cms_controller_test.rb +++ b/test/functional/cms_controller_test.rb @@ -653,10 +653,10 @@ class CmsControllerTest < ActionController::TestCase assert_match //, saved.body end - should 'not be able to add image with alignment when textile' do + should 'be able to add image with alignment when textile' do post :new, :type => 'TextileArticle', :profile => profile.identifier, :article => { :name => 'image-alignment', :body => "the text of the article with image right align..." } saved = TextileArticle.find_by_name('image-alignment') - assert_no_match /align="right"/, saved.body + assert_match /align="right"/, saved.body end should 'be able to create a new event document' do -- libgit2 0.21.2