Commit 742c74a473d64ebeae7d6325e684128b38d77c60
1 parent
6dae749c
Exists in
master
and in
29 other branches
content-viewer-controller-test: fix version diff test
The test was checking by "original article" and "edited article" but the lib was putting the "original" and the "edited" inside a strong tag because it's the only part being edited. To solve the problem I just checked by the text that was changed.
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/functional/content_viewer_controller_test.rb
... | ... | @@ -398,9 +398,9 @@ class ContentViewerControllerTest < ActionController::TestCase |
398 | 398 | page.body = 'edited article'; page.save |
399 | 399 | |
400 | 400 | get :versions_diff, :profile => profile.identifier, :page => [ 'myarticle' ], :v1 => 1, :v2 => 2; |
401 | - | |
402 | - assert_tag :tag => 'li', :attributes => { :class => /del/ }, :content => /original article/ | |
403 | - assert_tag :tag => 'li', :attributes => { :class => /ins/ }, :content => /edited article/ | |
401 | + | |
402 | + assert_tag :tag => 'li', :attributes => { :class => /del/ }, :content => /original/ | |
403 | + assert_tag :tag => 'li', :attributes => { :class => /ins/ }, :content => /edited/ | |
404 | 404 | assert_response :success |
405 | 405 | end |
406 | 406 | ... | ... |