summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 12:34:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-08 12:34:44 +0000
commit2870220c8d9ebd22a4a2a3c2698b037b3d075691 (patch)
tree2e70dd96ac2645e9fba2bd02b98067f31a1df909 /test/unit
parent72cb1027406a3114eb5b6c0c424ea10000a37017 (diff)
downloadredmine-2870220c8d9ebd22a4a2a3c2698b037b3d075691.tar.gz
redmine-2870220c8d9ebd22a4a2a3c2698b037b3d075691.zip
cleanup: rubocop: fix Style/RedundantInterpolation in test/unit/repository_mercurial_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18959 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/repository_mercurial_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 70a3e09ed..b0c666c61 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -174,7 +174,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
assert_equal "0885933ad4f68d77c2649cd11f8311276e7ef7ce", rev0.scmid
first_rev = @repository.changesets.first
last_rev = @repository.changesets.last
- assert_equal "#{NUM_REV - 1}", first_rev.revision
+ assert_equal (NUM_REV - 1).to_s, first_rev.revision
assert_equal "0", last_rev.revision
end
@@ -253,7 +253,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
# with_limit
changesets = @repository.latest_changesets('', nil, 2)
- assert_equal ["#{NUM_REV - 1}", "#{NUM_REV - 2}"], changesets.collect(&:revision)
+ assert_equal [(NUM_REV - 1).to_s, (NUM_REV - 2).to_s], changesets.collect(&:revision)
# with_filepath
changesets = @repository.latest_changesets(
@@ -590,7 +590,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
@repository.fetch_changesets
@project.reload
assert_equal NUM_REV, @repository.changesets.count
- ["#{NUM_REV - 1}", "2e6d54642923", "2e6d5"].each do |r1|
+ [(NUM_REV - 1).to_s, "2e6d54642923", "2e6d5"].each do |r1|
changeset = @repository.find_changeset_by_name(r1)
assert_nil changeset.next
end