Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rake test's failures and errors #56

Closed
s-s-s opened this issue Jul 20, 2012 · 2 comments
Closed

rake test's failures and errors #56

s-s-s opened this issue Jul 20, 2012 · 2 comments

Comments

@s-s-s
Copy link

s-s-s commented Jul 20, 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:infeed'
    app/controllers/application_controller.rb:330:in web_timeout' app/controllers/application_controller.rb:329:inweb_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:infeed'
    app/controllers/application_controller.rb:330:in web_timeout' app/controllers/application_controller.rb:329:inweb_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.
    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.
    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.
    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.
    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:intest_relations_for_node']:
    Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
    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:intest_relations_for_relation']:
    Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
    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:intest_relations_for_way']:
    Expected exactly 1 element matching "osm[version='0.6'][generator='OpenStreetMap server']", found 0.
    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:intest_user_create_success'
    test/integration/user_creation_test.rb:58:in each' test/integration/user_creation_test.rb:58:intest_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

@tomhughes
Copy link
Member

The rails-dev list would be a much better place for you to seek help getting your environment up and running than for you to keep opening bugs here for things which are largely configuration issues in your enivornment.

There are two expected failures when using ruby 1.8 as you appear to be (none with 1.9) so if you're getting more than that it is a problem with your setup and I suggest you ask for help getting setup on IRC or the rails-dev list.

@s-s-s
Copy link
Author

s-s-s commented Jul 20, 2012

Thank you for the answer, Tom.
As I have understood the messages from here are doubled in the rails-dev list.
I'll wait for a response therefrom.
Best regards, Sergey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants