[Git][noosfero/noosfero][master] bugfix: put the correct article path

Leandro Nunes gitlab at mg.gitlab.com
Tue Dec 29 14:56:31 BRST 2015


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
ab865b86 by Leandro Nunes dos Santos at 2015-12-29T13:55:41Z
bugfix: put the correct article path

- - - - -


1 changed file:

- test/functional/content_viewer_controller_test.rb


Changes:

=====================================
test/functional/content_viewer_controller_test.rb
=====================================
--- 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('&#x200B;')
   end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/ab865b86804a874c59c322d9ea2a882597787e4a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151229/c7113f8a/attachment.html>


More information about the Noosfero-dev mailing list