Commit a815c2ef7b3939cd24871b94eaea9908a81219cf
1 parent
47530dbe
Exists in
staging
and in
42 other branches
Fixed order of assert_equal's arguments
(ActionItem1875)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/functional/browse_controller_test.rb
@@ -81,7 +81,7 @@ class BrowseControllerTest < Test::Unit::TestCase | @@ -81,7 +81,7 @@ class BrowseControllerTest < Test::Unit::TestCase | ||
81 | 81 | ||
82 | get :people, :filter => 'more_active' | 82 | get :people, :filter => 'more_active' |
83 | 83 | ||
84 | - assert_equal assigns(:results).total_pages, Person.count/per_page | 84 | + assert_equal Person.count/per_page, assigns(:results).total_pages |
85 | end | 85 | end |
86 | 86 | ||
87 | should 'list all people filter by more active' do | 87 | should 'list all people filter by more active' do |
@@ -195,7 +195,7 @@ class BrowseControllerTest < Test::Unit::TestCase | @@ -195,7 +195,7 @@ class BrowseControllerTest < Test::Unit::TestCase | ||
195 | 195 | ||
196 | get :communities, :filter => 'more_active' | 196 | get :communities, :filter => 'more_active' |
197 | 197 | ||
198 | - assert_equal assigns(:results).total_pages, Community.count/per_page | 198 | + assert_equal Community.count/per_page, assigns(:results).total_pages |
199 | end | 199 | end |
200 | 200 | ||
201 | 201 |