[openstreetmap-website] rake test's failures and errors (#56)

s-s-s reply+i-5732766-f5321be804540793bbf348170d89e9529f7fc3a0-1419053 at reply.github.com
Fri Jul 20 09:58:23 BST 2012


Hello.
After the installation 'rake test' has given following failures and errors:

#link called at /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.2.6/lib/action_view/helpers/atom_feed_helper.rb:146:in `__send__'
E.......F....F.F.................F...........................................................................................FFF...........................................................
Finished in 175.081784 seconds.

  1) Error:
test_feed(ChangesetControllerTest):
ActionView::Template::Error: wrong number of arguments (1 for 2)
    app/views/changeset/list.atom.builder:25:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:24:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:23:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:4:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/controllers/changeset_controller.rb:335:in `list'
    app/controllers/changeset_controller.rb:342:in `feed'
    app/controllers/application_controller.rb:330:in `web_timeout'
    app/controllers/application_controller.rb:329:in `web_timeout'
    test/functional/changeset_controller_test.rb:1767:in `test_feed'

  2) Error:
test_feed_user(ChangesetControllerTest):
ActionView::Template::Error: wrong number of arguments (1 for 2)
    app/views/changeset/list.atom.builder:25:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:24:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:23:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/views/changeset/list.atom.builder:4:in `_app_views_changeset_list_atom_builder___861221088_17571292720'
    app/controllers/changeset_controller.rb:335:in `list'
    app/controllers/changeset_controller.rb:342:in `feed'
    app/controllers/application_controller.rb:330:in `web_timeout'
    app/controllers/application_controller.rb:329:in `web_timeout'
    test/functional/changeset_controller_test.rb:1782:in `test_feed_user'

  3) Failure:
test_read(ChangesetControllerTest) [test/functional/changeset_controller_test.rb:167]:
Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  4) Failure:
test_upload_create_valid(ChangesetControllerTest) [test/functional/changeset_controller_test.rb:400]:
Expected exactly 1 element matching "diffResult[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  5) Failure:
test_upload_delete_if_unused(ChangesetControllerTest) [test/functional/changeset_controller_test.rb:606]:
Expected exactly 1 element matching "diffResult[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  6) Failure:
test_upload_xml_errors(ChangesetControllerTest) [test/functional/changeset_controller_test.rb:1182]:
Expected exactly 1 element matching "osmError[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  7) Failure:
test_relations_for_node(RelationControllerTest)
    [test/functional/relation_controller_test.rb:94:in `check_relations_for_element'
     test/functional/relation_controller_test.rb:71:in `test_relations_for_node']:
Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  8) Failure:
test_relations_for_relation(RelationControllerTest)
    [test/functional/relation_controller_test.rb:94:in `check_relations_for_element'
     test/functional/relation_controller_test.rb:83:in `test_relations_for_relation']:
Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

  9) Failure:
test_relations_for_way(RelationControllerTest)
    [test/functional/relation_controller_test.rb:94:in `check_relations_for_element'
     test/functional/relation_controller_test.rb:77:in `test_relations_for_way']:
Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
<false> is not true.

270 tests, 3313 assertions, 7 failures, 2 errors
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rake_test_loader
Started
................F.......................
Finished in 222.101461 seconds.

  1) Failure:
test_user_create_success(UserCreationTest)
    [test/integration/user_creation_test.rb:62:in `test_user_create_success'
     test/integration/user_creation_test.rb:61:in `test_user_create_success'
     test/integration/user_creation_test.rb:58:in `each'
     test/integration/user_creation_test.rb:58:in `test_user_create_success']:
"ActionMailer::Base.deliveries.size" didn't change by 1.
<1> expected but was
<0>.

40 tests, 2867 assertions, 1 failures, 0 errors
Errors running test:functionals! #<RuntimeError: Command failed with status (1): [/usr/local/bin/ruby18 -I"lib:test" -I"/usr...]>
Errors running test:integration! #<RuntimeError: Command failed with status (1): [/usr/local/bin/ruby18 -I"lib:test" -I"/usr...]>

What it is possible to make to correct it?


Thank you,
Sergey

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/56



More information about the rails-dev mailing list