+
+ # Should be able to limit to users with edits
+ get users_list_path, :params => { :edits => "yes" }
+ assert_response :success
+ assert_template :show
+ assert_select "table#user_list tbody tr", :count => 1 do
+ assert_select "a[href='#{user_path(edits_user)}']", :count => 1
+ end
+
+ # Should be able to limit to users with no edits
+ get users_list_path, :params => { :edits => "no" }
+ assert_response :success
+ assert_template :show
+ assert_select "table#user_list tbody tr", :count => 9 do
+ assert_select "a[href='#{user_path(edits_user)}']", :count => 0
+ end