Actions
Defect #39760
closedSome API tests fail with Ruby 2.7
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
In the current trunk r22493, the following three API tests fail if you run tests with Ruby 2.7.
Failure: Redmine::ApiTest::MyTest#test_GET_/my/account.json_should_return_user [/path/to/redmine/test/integration/api_test/my_test.rb:30]: Expected: "application/json" Actual: "text/html" bin/rails test test/integration/api_test/my_test.rb:25
Failure: Redmine::ApiTest::NewsTest#test_GET_/news/:id.json [/path/to/redmine/test/integration/api_test/news_test.rb:84]: Expected: "application/json" Actual: "text/html" bin/rails test test/integration/api_test/news_test.rb:81
Failure: Redmine::ApiTest::NewsTest#test_GET_/news/:id.xml [/path/to/redmine/test/integration/api_test/news_test.rb:69]: Expected: "application/xml" Actual: "text/html" bin/rails test test/integration/api_test/news_test.rb:66
Related issues
Actions