Commit ab865b86804a874c59c322d9ea2a882597787e4a
1 parent
1674a3a1
Exists in
master
and in
17 other branches
bugfix: put the correct article path
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/content_viewer_controller_test.rb
... | ... | @@ -1160,9 +1160,9 @@ class ContentViewerControllerTest < ActionController::TestCase |
1160 | 1160 | |
1161 | 1161 | should 'add an zero width space every 4 caracters of comment urls' do |
1162 | 1162 | url = 'www.an.url.to.be.splited.com' |
1163 | - a = fast_create(TextileArticle, :profile_id => @profile.id, :path => 'textile', :language => 'en') | |
1163 | + a = fast_create(TextileArticle, :profile_id => @profile.id, :language => 'en') | |
1164 | 1164 | c = a.comments.create!(:author => @profile, :title => 'An url', :body => url) |
1165 | - get :view_page, :profile => @profile.identifier, :page => [ 'textile' ] | |
1165 | + get :view_page, :profile => @profile.identifier, :page => a.path | |
1166 | 1166 | assert_tag :a, :attributes => { :href => "http://" + url}, :content => url.scan(/.{4}/).join('​') |
1167 | 1167 | end |
1168 | 1168 | ... | ... |