Actions
Testing #1171
closedFix some broken core tests
Start date:
Due date:
% Done:
100%
Estimated time:
Affected component:
Compatible Redmine Version:
Pull Request Link:
Description
Functional Tests
FAIL MailHandlerControllerTest#test_should_update_issue (0.74s)
"Journal.count" didn't change by 1.
Expected: 1
Actual: 0
test/functional/mail_handler_controller_test.rb:89:in `block (2 levels) in test_should_update_issue'
test/functional/mail_handler_controller_test.rb:88:in `block in test_should_update_issue'
test/test_helper.rb:101:in `with_settings'
test/functional/mail_handler_controller_test.rb:84:in `test_should_update_issue'
ERROR ProjectsControllerTest#test_show_by_member_on_leaf_project_should_display_issue_counts (15.30s)
Minitest::UnexpectedError: RuntimeError: Neutered Exception ActionView::Template::Error: undefined method `truncate_words' for nil:NilClass
plugins/redmine_dashboards/app/views/news/_news.html.erb:20:in `block (4 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:18:in `block (3 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:17:in `block (2 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:7:in `block in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:6:in `_55efcba0f916885820fc99efd300bbe8'
app/views/projects/show.html.erb:183:in `_d4e59d335215636ce754daf4c5b05b16'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
test/functional/projects_controller_test.rb:747:in `test_show_by_member_on_leaf_project_should_display_issue_counts'
ERROR MyControllerTest#test_page_with_all_blocks (118.44s)
Minitest::UnexpectedError: RuntimeError: Neutered Exception ActionView::Template::Error: undefined method `truncate_words' for nil:NilClass
plugins/redmine_dashboards/app/views/news/_news.html.erb:20:in `block (4 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:18:in `block (3 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:17:in `block (2 levels) in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:7:in `block in _55efcba0f916885820fc99efd300bbe8'
plugins/redmine_dashboards/app/views/news/_news.html.erb:6:in `_55efcba0f916885820fc99efd300bbe8'
app/views/my/blocks/_news.html.erb:3:in `_530e96b6d016912369cc4609d0b1ea44'
app/helpers/my_helper.rb:163:in `render_news_block'
app/helpers/my_helper.rb:64:in `render_block_content'
app/helpers/my_helper.rb:35:in `render_block'
app/helpers/my_helper.rb:27:in `block in render_blocks'
app/helpers/my_helper.rb:26:in `each'
app/helpers/my_helper.rb:26:in `render_blocks'
app/views/my/page.html.erb:13:in `block in _3ae7ee5e19d7564da266e13bede16819'
app/views/my/page.html.erb:11:in `each'
app/views/my/page.html.erb:11:in `_3ae7ee5e19d7564da266e13bede16819'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
test/functional/my_controller_test.rb:286:in `test_page_with_all_blocks'
ERROR AdminControllerTest#test_info (137.99s)
Minitest::UnexpectedError: WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET https://service.xmera.de/projects/.xml with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "https://service.xmera.de/projects/.xml").
with(
headers: {
'Accept'=>'*/*',
'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
'User-Agent'=>'Ruby'
}).
to_return(status: 200, body: "", headers: {})
============================================================
plugins/xmera_omnia_operations/app/models/release.rb:60:in `request'
plugins/xmera_omnia_operations/app/models/webhook.rb:31:in `perform'
plugins/xmera_omnia_operations/app/models/release.rb:31:in `check'
app/views/admin/info.html.erb:26:in `block in _6acd7971e986d17185dd5ee33b197eda'
app/views/admin/info.html.erb:23:in `_6acd7971e986d17185dd5ee33b197eda'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
test/functional/admin_controller_test.rb:156:in `test_info'
Updated by liaham over 2 years ago
- Status changed from New to Closed
- Assignee set to liaham
- % Done changed from 0 to 100
Actions