Commit ab865b86 authored by Leandro Nunes's avatar Leandro Nunes

bugfix: put the correct article path

parent 1674a3a1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment