Commit 5b0ecadc096feced8d182083c39b3c8fce7c1769
1 parent
cf658f98
Exists in
master
and in
1 other branch
Fix test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/gamification_plugin_profile_controller_test.rb
| @@ -14,8 +14,8 @@ class GamificationPluginProfileControllerTest < ActionController::TestCase | @@ -14,8 +14,8 @@ class GamificationPluginProfileControllerTest < ActionController::TestCase | ||
| 14 | person.add_points(20, :category => :comment_author) | 14 | person.add_points(20, :category => :comment_author) |
| 15 | person.add_points(30, :category => :article_author) | 15 | person.add_points(30, :category => :article_author) |
| 16 | get :dashboard, :profile => person.identifier | 16 | get :dashboard, :profile => person.identifier |
| 17 | - assert_tag :div, :attributes => {:class => 'score article_author'}, :child => {:tag => 'span', :attributes => {:class => 'value'}, :content => '30'} | ||
| 18 | - assert_tag :div, :attributes => {:class => 'score comment_author'}, :child => {:tag => 'span', :attributes => {:class => 'value'}, :content => '20'} | 17 | + assert_tag :div, :attributes => {:class => 'score article_author'}, :child => {:tag => 'span', :attributes => {:class => 'value positive'}, :content => '30'} |
| 18 | + assert_tag :div, :attributes => {:class => 'score comment_author'}, :child => {:tag => 'span', :attributes => {:class => 'value positive'}, :content => '20'} | ||
| 19 | assert_tag :div, :attributes => {:class => 'score total'}, :child => {:tag => 'span', :attributes => {:class => 'value'}, :content => '50'} | 19 | assert_tag :div, :attributes => {:class => 'score total'}, :child => {:tag => 'span', :attributes => {:class => 'value'}, :content => '50'} |
| 20 | end | 20 | end |
| 21 | 21 |