Project

General

Profile

Actions

Defect #39760

closed

Some API tests fail with Ruby 2.7

Added by Go MAEDA 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
REST API
Target version:
-
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

Related to Redmine - Feature #36320: Migrate to Rails 7.1ReopenedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF