Commit 742c74a473d64ebeae7d6325e684128b38d77c60

Authored by Rodrigo Souto
1 parent 6dae749c

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.
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  
... ...