Advertisement
Guest User

tests failures

a guest
Jan 23rd, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.38 KB | None | 0 0
  1. Unitário
  2. -----------------------------------------------------------------------------------------------------
  3. 1) Failure:
  4. test_should_not_allow_friends_of_private_person_see_the_article(ArticleTest) [/home/gabriela/Projects/noosfero/test/unit/article_test.rb:551]:
  5. Failed assertion, no message given.
  6.  
  7. 2) Failure:
  8. test_should_say_that_member_user_can_not_see_private_article(ArticleTest) [/home/gabriela/Projects/noosfero/test/unit/article_test.rb:490]:
  9. Failed assertion, no message given.
  10.  
  11. 2938 tests, 5585 assertions, 2 failures, 0 errors, 0 skips
  12. rake aborted!
  13. Command failed with status (2): [/usr/bin/ruby1.9.1 -I"lib:test" -I"/usr/li...]
  14. ------------------------------------------------------------------------------------------------------
  15.  
  16. Funcional
  17. ------------------------------------------------------------------------------------------------------
  18. 1) Error:
  19. test_should_do_not_call_plugin_filter_block_on_a_environment_that_this_plugin_is_not_enabled(ApplicationControllerTest):
  20. NoMethodError: undefined method `application_controller_test_other_filter_plugin_filter_plugin' for #<TestController:0x00000009e75f00>
  21. /home/gabriela/Projects/noosfero/test/functional/application_controller_test.rb:540:in `block in <class:ApplicationControllerTest>'
  22. /usr/lib/ruby/vendor_ruby/mocha/integration/mini_test/version_230_to_2101.rb:36:in `run'
  23.  
  24. 2) Failure:
  25. test_should_do_not_duplicate_plugin_filters(ApplicationControllerTest) [/home/gabriela/Projects/noosfero/test/functional/application_controller_test.rb:518]:
  26. <1> expected but was
  27. <0>.
  28.  
  29. 3) Failure:
  30. test_should_not_give_access_to_private_articles_if_logged_in_and_only_member(ContentViewerControllerTest) [/home/gabriela/Projects/noosfero/test/functional/content_viewer_controller_test.rb:287]:
  31. expecting <"access_denied"> but rendering with <"content_viewer/_confirm_unfollow, content_viewer/_article_toolbar, content_viewer/folder, content_viewer/view_page, layouts/_javascript, layouts/_user, layouts/_content, shared/noosfero_layout_features, layouts/application-ng">
  32.  
  33. 4) Failure:
  34. test_should_not_show_private_content_to_members(ContentViewerControllerTest) [/home/gabriela/Projects/noosfero/test/functional/content_viewer_controller_test.rb:184]:
  35. expecting <"access_denied"> but rendering with <"content_viewer/_confirm_unfollow, content_viewer/_article_toolbar, content_viewer/folder, content_viewer/view_page, layouts/_javascript, layouts/_user, layouts/_content, shared/noosfero_layout_features, layouts/application-ng">
  36. ------------------------------------------------------------------------------------------------------
  37.  
  38. Integration
  39. ------------------------------------------------------------------------------------------------------
  40. ------------------------------------------------------------------------------------------------------
  41.  
  42. Cucumber
  43. ------------------------------------------------------------------------------------------------------
  44. (::) failed steps (::)
  45.  
  46. expected #has_no_content?("Unpublished event") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
  47. /usr/lib/ruby/vendor_ruby/rspec/expectations/fail_with.rb:33:in `fail_with'
  48. /usr/lib/ruby/vendor_ruby/rspec/expectations/handler.rb:19:in `handle_matcher'
  49. /usr/lib/ruby/vendor_ruby/rspec/expectations/extensions/kernel.rb:12:in `should'
  50. ./features/step_definitions/web_steps.rb:147:in `block (2 levels) in <top (required)>'
  51. ./features/step_definitions/web_steps.rb:20:in `with_scope'
  52. ./features/step_definitions/web_steps.rb:145:in `/^(?:|I )should not see "([^"]*)"(?: within "([^"]*)")?$/'
  53. features/events.feature:181:in `Then I should not see "Unpublished event"'
  54.  
  55. expected [Person/334/mariasilva] to include Person/333/joaosilva
  56. Diff:
  57. @@ -1,2 +1,2 @@
  58. -[Person/333/joaosilva]
  59. +[Person/334/mariasilva]
  60. (RSpec::Expectations::ExpectationNotMetError)
  61. /usr/lib/ruby/vendor_ruby/rspec/expectations/fail_with.rb:33:in `fail_with'
  62. /usr/lib/ruby/vendor_ruby/rspec/expectations/handler.rb:17:in `handle_matcher'
  63. /usr/lib/ruby/vendor_ruby/rspec/expectations/extensions/kernel.rb:12:in `should'
  64. ./features/step_definitions/noosfero_steps.rb:338:in `/^"(.+)" should be a member of "(.+)"$/'
  65. features/login.feature:224:in `Then "Joao Silva" should be a member of "Free Software"'
  66.  
  67. expected #has_no_content?("private article") to return true, got false (RSpec::Expectations::ExpectationNotMetError)
  68. /usr/lib/ruby/vendor_ruby/rspec/expectations/fail_with.rb:33:in `fail_with'
  69. /usr/lib/ruby/vendor_ruby/rspec/expectations/handler.rb:19:in `handle_matcher'
  70. /usr/lib/ruby/vendor_ruby/rspec/expectations/extensions/kernel.rb:12:in `should'
  71. ./features/step_definitions/web_steps.rb:147:in `block (2 levels) in <top (required)>'
  72. ./features/step_definitions/web_steps.rb:17:in `block in with_scope'
  73. /usr/lib/ruby/vendor_ruby/capybara/session.rb:224:in `within'
  74. /usr/lib/ruby/vendor_ruby/capybara/dsl.rb:51:in `block (2 levels) in <module:DSL>'
  75. ./features/step_definitions/web_steps.rb:16:in `with_scope'
  76. ./features/step_definitions/web_steps.rb:145:in `/^(?:|I )should not see "([^"]*)"(?: within "([^"]*)")?$/'
  77. features/profile_search.feature:51:in `And I should not see "private article" within ".main-block"'
  78.  
  79. Failing Scenarios:
  80. cucumber features/events.feature:176 # Scenario: events that are not allowed to the user should not be displayed nor listed in the calendar
  81. cucumber features/login.feature:211 # Scenario: join community on login
  82. cucumber features/profile_search.feature:42 # Scenario: not display unpublished articles
  83.  
  84. ------------------------------------------------------------------------------------------------------
  85.  
  86. Cucumber selenium
  87. ------------------------------------------------------------------------------------------------------
  88. Failing Scenarios:
  89. cucumber -p selenium features/edit_article.feature:26 # Scenario: denied access folder for a not logged user
  90. cucumber -p selenium features/edit_article.feature:72 # Scenario: show exception users field when you choose the private option
  91. cucumber -p selenium features/edit_article.feature:93 # Scenario: allowed user should see the content of a folder
  92. cucumber -p selenium features/signup.feature:255 # Scenario: join community on signup
  93. ------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement