Translations: English
Search on Docs:
   
ActionItem Search:

#1839: Not all functional tests pass in postgresql

Type: BugItem Feature: Infrastructure Tags: colivre
ScheduledFor: N/A Assigned to: Nobody Sites:  
Priority: 0 Status: Pending  

Description of the bug

  1) Failure:
test_should_be_able_to_change_password(AccountControllerTest)
    [./test/functional/account_controller_test.rb:197:in `test_should_be_able_to_change_password'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
<false> is not true.

  2) Failure:
test_should_list_all_communities_filter_by_more_active(BrowseControllerTest)
    [./test/functional/browse_controller_test.rb:171:in `test_should_list_all_communities_filter_by_more_active'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
<[#<Community id: 110, name: "Testing community 1", type: "Community", identifier: "community-56", environment_id: 1, active: true, address: nil, contact_phone: nil, home_page_id: nil, user_id: nil, region_id: nil, data: {:description=>nil}, created_at: "2011-02-01 22:11:25", lat: nil, lng: nil, geocode_precision: nil, enabled: true, nickname: nil, custom_header: nil, custom_footer: nil, theme: nil, public_profile: true, birth_date: nil, preferred_domain_id: nil, updated_at: "2011-02-01 22:11:25", visible: true>,
 #<Community id: 111, name: "Testing community 2", type: "Community", identifier: "community-58", environment_id: 1, active: true, address: nil, contact_phone: nil, home_page_id: nil, user_id: nil, region_id: nil, data: {:description=>nil}, created_at: "2011-02-01 22:11:25", lat: nil, lng: nil, geocode_precision: nil, enabled: true, nickname: nil, custom_header: nil, custom_footer: nil, theme: nil, public_profile: true, birth_date: nil, preferred_domain_id: nil, updated_at: "2011-02-01 22:11:26", visible: true>]> expected but was
<[#<Community id: 111, name: "Testing community 2", type: "Community", identifier: "community-58", environment_id: 1, active: true, address: nil, contact_phone: nil, home_page_id: nil, user_id: nil, region_id: nil, data: {:description=>nil}, created_at: "2011-02-01 22:11:25", lat: nil, lng: nil, geocode_precision: nil, enabled: true, nickname: nil, custom_header: nil, custom_footer: nil, theme: nil, public_profile: true, birth_date: nil, preferred_domain_id: nil, updated_at: "2011-02-01 22:11:26", visible: true>,
 #<Community id: 110, name: "Testing community 1", type: "Community", identifier: "community-56", environment_id: 1, active: true, address: nil, contact_phone: nil, home_page_id: nil, user_id: nil, region_id: nil, data: {:description=>nil}, created_at: "2011-02-01 22:11:25", lat: nil, lng: nil, geocode_precision: nil, enabled: true, nickname: nil, custom_header: nil, custom_footer: nil, theme: nil, public_profile: true, birth_date: nil, preferred_domain_id: nil, updated_at: "2011-02-01 22:11:25", visible: true>]>.

  3) Failure:
test_should_touch_article_after_adding_a_comment(ContentViewerControllerTest)
    [./test/functional/content_viewer_controller_test.rb:922:in `test_should_touch_article_after_adding_a_comment'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
<Mon Jan 31 22:15:12 -0300 2011> expected to be != to
<Mon Jan 31 22:15:12 -0300 2011>.

  4) Failure:
test_should_the_wall_itens_be_paginated_in_people_profiles(ProfileControllerTest)
    [./test/functional/profile_controller_test.rb:969:in `test_should_the_wall_itens_be_paginated_in_people_profiles'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
<40> expected but was
<0>.

  5) Failure:
test_should_display_search_results(ProfileSearchControllerTest)
    [./test/functional/profile_search_controller_test.rb:50:in `test_should_display_search_results'
     ./test/functional/profile_search_controller_test.rb:49:in `each'
     ./test/functional/profile_search_controller_test.rb:49:in `test_should_display_search_results'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
expected tag, but no tag found matching {:descendant=>{:content=>"Article to test profile search", :tag=>"a", :attributes=>{:class=>/article-details/}}, :tag=>"li"} in:
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n  <head>\n    <title>Person 1102 - Colivre.net</title>\n    \n    <!--<meta http-equiv=\"refresh\" content=\"1\"/>-->\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n    <meta name=\"description\" content=\"Colivre.net\" />\n    <link rel=\"shortcut icon\" href=\"/designs/themes/noosfero/favicon.ico?1274883637\" type=\"image/x-icon\" />\n    <script src=\"/javascripts/prototype.js?1274883656\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/effects.js?1274883646\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/dragdrop.js?1274883646\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/controls.js?1274883645\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery-latest.js?1275167227\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery.noconflict.js?1274883646\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery.cycle.all.min.js?1274883646\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/thickbox.js?1274883656\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/lightbox.js?1274883656\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery-ui-1.8.2.custom.min.js?1279398711\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery.scrollTo.js?1279398711\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery.form.js?1279398711\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/jquery.cookie.js?1295442197\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/reflection.js?1279398711\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/add-and-join.js?1296608670\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/application.js?1296608670\" type=\"text/javascript\"></script>\n\n    <link href=\"/stylesheets/application.css?1296608670\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<link href=\"/stylesheets/thickbox.css?1274883634\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<link href=\"/stylesheets/lightbox.css?1274883634\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<link href=\"/stylesheets/colorpicker.css?1275167227\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<link href=\"/stylesheets/iepngfix/iepngfix.css?1274883634\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n    <link href=\"/designs/templates/default/stylesheets/style.css?1295450985\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n    <link href=\"/designs/icons/default/style.css?1296608670\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n<link href=\"/designs/icons/pidgin/style.css?1295442196\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n    <link href=\"/designs/themes/noosfero/style.css?1295450985\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n    <link href=\"/stylesheets/jquery.ui/smoothness_mod/jquery-ui-1.8.2.custom.css?1295442197\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n\n    \n    \n    <script type=\"text/javascript\">\n//<![CDATA[\nrender_all_jquery_ui_widgets()\n//]]>\n</script>\n  </head>\n  <body class=\" controller-profile_search action-profile_search-index template-default\" >\n\n    <a href=\"#content\" id=\"link-go-content\"><span>Go to the content</span></a>\n\n    <div id=\"wrap-1\">\n      <div id='theme-header'>\n        <!-- empty -->\n\n      </div>\n      <div id=\"wrap-2\">\n        <div id=\"user\">\n          <span class='logged-in' style='display: none;'>\n            Welcome, <a href=\"/{login}\" id=\"homepage-link\" title=\"Go to your homepage\"><i></i><strong>{login}</strong></a><a href=\"/admin\" class=\"admin-link\" id=\"controlpanel\" style=\"display: none\" title=\"Configure the environment\"><i class=\"icon-menu-admin\"></i><strong>Administration</strong></a><a href=\"/myprofile/{login}\" id=\"controlpanel\" title=\"Configure your personal account and content\"><i class=\"icon-menu-ctrl-panel\"></i><strong>Control panel</strong></a><a href=\"/account/logout\" id=\"logout\" title=\"Leave the system\"><i class=\"icon-menu-logout\"></i><strong>Logout</strong></a>\n          </span>\n          <span class='not-logged-in' style='display: none'>\n              <a href=\"/account/login#TB_inline?height=300&width=500&inlineId=inlineLoginBox&modal=true\" class=\"thickbox\" id=\"link_login\"><i class=\"icon-menu-login\"></i><strong>Login</strong></a> or <a href=\"/account/signup\"><strong>Register</strong></a>\n              <div id='inlineLoginBox' style='display: none;'>\n                <div class=\"login-box\">\n\n<h2>Login</h2>\n\n\n\n\n<form action=\"/account/login\" method=\"post\">\n\n     <div class=\"formfieldline\"><label class=\"formlabel\" for=\"main_user_login\">Username</label><div class=\"formfield type-text\"><input id=\"main_user_login\" name=\"user[login]\" onchange=\"this.value = convToValidLogin( this.value )\" size=\"30\" type=\"text\" /></div></div>\n\n     <div class=\"formfieldline\"><label class=\"formlabel\" for=\"user_password\">Password</label><div class=\"formfield type-password\"><input id=\"user_password\" name=\"user[password]\" size=\"30\" type=\"password\" /></div></div>\n\n     <div class=\"button-bar\">\n       <input class=\"button with-text icon-login submit\" name=\"commit\" type=\"submit\" value=\"Log in\" />\n       \n         <a class=\"button with-text icon-close\" href=\"#\" onclick=\"tb_remove();; return false;\">Cancel</a>\n       \n     <br style=\"clear: left;\" /></div>\n\n</form>\n\n<div class=\"button-bar\">\n  <a href=\"/account/signup\" class=\"button icon-add with-text\" title=\"New user\">&nbsp;<span>New user</span></a>\n  <a href=\"/account/forgot_password\" class=\"button icon-help with-text\" title=\"I forgot my password!\">&nbsp;<span>I forgot my password!</span></a>\n<br style=\"clear: left;\" /></div>\n\n</div><!-- end class=\"login-box\" -->\n\n\n              </div>\n          </span>\n          <form action=\"/search\" class=\"search_form\" method=\"get\" class=\"clean\">\n            <input name=\"query\" size=\"15\" value=\"Search...\"\n                onfocus=\"this.form.className='focused';\n                         if(this.value=='Search...'){this.value=''}\"\n                onblur=\"this.form.className='';\n                        if(/^\\s*$/.test(this.value)){\n                          this.value='Search...';\n                          this.form.className='clean'\n                        }\" />\n            <div>Press <strong>Enter</strong> to send the search query.</div>\n          </form>\n        </div><!-- end id=\"user\" -->\n\n        <h1 id=\"site-title\">\n          <a href=\"http://colivre.net\"><img alt=\"Logo-noosfero\" src=\"/designs/themes/noosfero/images/logo-noosfero.png?1274883637\" /></a>\n\n        </h1>\n        <div id=\"navigation\">\n          <ul>\n            <li>\n  <a href=\"/browse/people\" id=\"submenu-people\"><span class=\"icon-menu-people\">People</span></a><a href=\"#\" class=\"menu-submenu-trigger up\" id=\"submenu-people-trigger\" onclick=\"toggleSubmenu(this,'',[{&quot;More Recent&quot;: {&quot;href&quot;: &quot;/browse/people/more_recent&quot;}}, {&quot;More Active&quot;: {&quot;href&quot;: &quot;/browse/people/more_active&quot;}}, {&quot;More Popular&quot;: {&quot;href&quot;: &quot;/browse/people/more_popular&quot;}}]); return false\"><span>People Menu</span></a>\n</li>\n<li>\n  <a href=\"/browse/communities\" id=\"submenu-communities\"><span class=\"icon-menu-community\">Communities</span></a><a href=\"#\" class=\"menu-submenu-trigger up\" id=\"submenu-communities-trigger\" onclick=\"toggleSubmenu(this,'',[{&quot;More Recent&quot;: {&quot;href&quot;: &quot;/browse/communities/more_recent&quot;}}, {&quot;More Active&quot;: {&quot;href&quot;: &quot;/browse/communities/more_active&quot;}}, {&quot;More Popular&quot;: {&quot;href&quot;: &quot;/browse/communities/more_popular&quot;}}]); return false\"><span>Communities Menu</span></a>\n</li>\n<li><a href=\"/assets/events\"><span class='icon-menu-events'>Events</span></a></li>\n\n          </ul>\n          <div id=\"navigation-end\"></div>\n        </div><!-- end id=\"navigation\" -->\n        <div id=\"content\">\n          <div id=\"profile-header\"></div><div class=\"boxes\" id=\"boxes\"><div id='profile-search-results'>\n  <h1>Search on Person 1102's profile</h1>\n\n  <form action=\"/profile/person-1102/search\" class=\"search_form\" method=\"get\">\n  <div class=\"search-field\">\n    <span class=\"formfield\">\n      <input id=\"q\" name=\"q\" title=\"Find in Person 1102's content\" type=\"text\" value=\"article\" />\n    </span>\n    <input class=\"button with-text icon-search submit\" name=\"commit\" type=\"submit\" value=\"Search\" />\n    <div>\n      <input checked=\"checked\" id=\"radio-236\" name=\"where\" type=\"radio\" value=\"profile\" /><label for=\"radio-236\">Profile</label>\n      <input id=\"radio-237\" name=\"where\" type=\"radio\" value=\"environment\" /><label for=\"radio-237\">Colivre.net</label>\n    </div>\n  </div>\n</form>\n\n\n  \n    <div class='results-found-message'>\n      0 results found\n    </div>\n\n    <ul class='results-list'>\n      \n    </ul>\n\n    \n  \n</div>\n</div><div id=\"profile-footer\"></div>\n          <br style='clear: both'/>\n        </div><!-- end id=\"content\" -->\n      </div><!-- end id=\"wrap-2\" -->\n    </div><!-- end id=\"wrap-1\" -->\n    \n    <div id=\"theme-footer\">\n      <div id=\"footer-links\">\n  <a id=\"link-to-doc\" class='icon-help'><a href=\"/doc\">Manual</a></a>\n</div><!-- end id=\"footer-links\" -->\n<div id=\"copyright\">\n  <p>This social network uses <a href=\"http://noosfero.org/\">Noosfero</a>, developed by <a href=\"http://colivre.coop.br/\">Colivre</a> and licensed under the <a href=\"http://www.gnu.org/licenses/agpl.html\">GNU Affero General Public License</a> version 3 or any later version.</p>\n</div><!-- end id=\"copyright\" -->\n<div help=\"The language you choose here is the language used for options, buttons, etc. It does not affect the language of the content created by other users.\" id=\"language-chooser\"><a href=\"/profile/person-1102/search?lang=de&amp;q=article\" rel=\"nofollow\">Deutsch</a> &mdash; <a href=\"/profile/person-1102/search?lang=fr&amp;q=article\" rel=\"nofollow\">Français</a> &mdash; <a href=\"/profile/person-1102/search?lang=es&amp;q=article\" rel=\"nofollow\">Español</a> &mdash; <a href=\"/profile/person-1102/search?lang=ru&amp;q=article\" rel=\"nofollow\">&#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; &#1103;&#1079;&#1099;&#1082;</a> &mdash; <a href=\"/profile/person-1102/search?lang=pt&amp;q=article\" rel=\"nofollow\">Português</a> &mdash; <a href=\"/profile/person-1102/search?lang=hy&amp;q=article\" rel=\"nofollow\">&#1392;&#1377;&#1397;&#1381;&#1408;&#1381;&#1398; &#1388;&#1381;&#1382;&#1400;&#1410;</a> &mdash; <strong>English</strong></div>\n\n    </div><!-- end id=\"theme-footer\" -->\n        \n\n    \n  </body>\n</html>\n".
<nil> is not true.

  6) Failure:
test_should_destroy(RoleControllerTest)
    [/home/joenio/src/noosfero/lib/authenticated_test_helper.rb:43:in `assert_difference'
     ./test/functional/role_controller_test.rb:80:in `test_should_destroy'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `__send__'
     /home/joenio/src/noosfero/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in `run']:
Role#count.

-- JoenioCosta -- 03 Feb 2011
Add comment
You need to login to be able to comment.
 

ActionItemForm edit

Title Not all functional tests pass in postgresql
ActionItemType BugItem
Priority Low
Tags colivre
Feature Infrastructure
ResponsibleDevelopers Nobody
ScheduledFor N/A
AffectsVersion
Status Pending
Ticket SAC:
Topic revision: r1 - 22 May 2015, UnknownUser

irc Talk with Devs Now!

Copyright © 2007-2019 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres