From ab865b86804a874c59c322d9ea2a882597787e4a Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 29 Dec 2015 13:55:41 -0300 Subject: [PATCH] bugfix: put the correct article path --- test/functional/content_viewer_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/content_viewer_controller_test.rb b/test/functional/content_viewer_controller_test.rb index f8fe0d5..0a34c08 100644 --- a/test/functional/content_viewer_controller_test.rb +++ b/test/functional/content_viewer_controller_test.rb @@ -1160,9 +1160,9 @@ class ContentViewerControllerTest < ActionController::TestCase should 'add an zero width space every 4 caracters of comment urls' do url = 'www.an.url.to.be.splited.com' - a = fast_create(TextileArticle, :profile_id => @profile.id, :path => 'textile', :language => 'en') + a = fast_create(TextileArticle, :profile_id => @profile.id, :language => 'en') c = a.comments.create!(:author => @profile, :title => 'An url', :body => url) - get :view_page, :profile => @profile.identifier, :page => [ 'textile' ] + get :view_page, :profile => @profile.identifier, :page => a.path assert_tag :a, :attributes => { :href => "http://" + url}, :content => url.scan(/.{4}/).join('​') end -- libgit2 0.21.2