summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-08-04 04:51:26 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-08-04 04:51:26 +0000
commit9fa084133be8c9751b47f848628b9d338ceeb53b (patch)
tree6a09ea97035eb458ae5f7cae5b6c095fa7601da6 /test
parent6e6b01a65e30a572667f60640ad1ab59ec59b6fe (diff)
downloadredmine-9fa084133be8c9751b47f848628b9d338ceeb53b.tar.gz
redmine-9fa084133be8c9751b47f848628b9d338ceeb53b.zip
code clean up test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18344 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
index 6c261395f..5835f72e0 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -406,17 +406,17 @@ class MercurialAdapterTest < ActiveSupport::TestCase
'test_branch.latin-1',
'test-branch-00',
]
- .each do |bra|
- nib0 = @adapter.nodes_in_branch(bra)
+ .each do |branch|
+ nib0 = @adapter.nodes_in_branch(branch)
assert nib0
- nib1 = @adapter.nodes_in_branch(bra, :limit => 1)
+ nib1 = @adapter.nodes_in_branch(branch, :limit => 1)
assert_equal 1, nib1.size
- case bra
+ case branch
when 'branch (1)[2]&,%.-3_4'
if @adapter.class.client_version_above?([1, 6])
assert_equal 3, nib0.size
assert_equal 'afc61e85bde74de930e5846c8451bd55b5bafc9c', nib0[0]
- nib2 = @adapter.nodes_in_branch(bra, :limit => 2)
+ nib2 = @adapter.nodes_in_branch(branch, :limit => 2)
assert_equal 2, nib2.size
assert_equal '933ca60293d78f7c7979dd123cc0c02431683575', nib2[1]
end
@@ -424,7 +424,7 @@ class MercurialAdapterTest < ActiveSupport::TestCase
if @adapter.class.client_version_above?([1, 6])
assert_equal 2, nib0.size
assert_equal '08ff3227303ec0dfcc818efa8e9cc652fe81859f', nib0[1]
- nib2 = @adapter.nodes_in_branch(bra, :limit => 1)
+ nib2 = @adapter.nodes_in_branch(branch, :limit => 1)
assert_equal 1, nib2.size
assert_equal '7bbf4c738e7145149d2e5eb1eed1d3a8ddd3b914', nib2[0]
end