summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test/issues_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-10-02 00:53:11 +0000
committerGo MAEDA <maeda@farend.jp>2019-10-02 00:53:11 +0000
commit545a050ba318f09890b6baf6934face7e958ea88 (patch)
tree476d0fe4afb49930f50564f5fd72cbf1a85a48c3 /test/integration/api_test/issues_test.rb
parentfff145a49dac4266a4699de204f835819e42e7ae (diff)
downloadredmine-545a050ba318f09890b6baf6934face7e958ea88.tar.gz
redmine-545a050ba318f09890b6baf6934face7e958ea88.zip
Code cleanup: RuboCop: Fix Performance/Count and Performance/Detect.
This change corrects newly detected offenses after updating rubocop-performance to 1.5.0 in r18579. git-svn-id: http://svn.redmine.org/redmine/trunk@18580 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test/issues_test.rb')
-rw-r--r--test/integration/api_test/issues_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index dbfb05deb..d7b9d4d55 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -338,7 +338,7 @@ class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
json = ActiveSupport::JSON.decode(response.body)
assert_equal 2, json['issue']['children'].size
- assert_equal 1, json['issue']['children'].select {|child| child.key?('children')}.size
+ assert_equal 1, json['issue']['children'].count {|child| child.key?('children')}
end
test "GET /issues/:id.json with no spent time should return floats" do