summaryrefslogtreecommitdiffstats
path: root/test/integration/repositories_git_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-18 16:15:27 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-18 16:15:27 +0000
commit0fd42d43bdc65f2a20f23225f1a691513aca8f66 (patch)
tree497898c534e7de991f1abc76b40a5702c3f647ca /test/integration/repositories_git_test.rb
parent1286ee29d97d2050cecc87fd1d44c295d9f66979 (diff)
downloadredmine-0fd42d43bdc65f2a20f23225f1a691513aca8f66.tar.gz
redmine-0fd42d43bdc65f2a20f23225f1a691513aca8f66.zip
shorten long line of test/integration/repositories_git_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20417 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/repositories_git_test.rb')
-rw-r--r--test/integration/repositories_git_test.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb
index 5c54d1e2f..8c13b63c8 100644
--- a/test/integration/repositories_git_test.rb
+++ b/test/integration/repositories_git_test.rb
@@ -82,14 +82,18 @@ class RepositoriesGitTest < Redmine::IntegrationTest
@repository.fetch_changesets
assert_equal NUM_REV, @repository.changesets.count
- get "/projects/subproject1/repository/#{@repository.id}/revisions/deff712f05a90d96edbd70facc47d944be5897e3/diff/sources/watchers_controller.rb", :params => { :format => 'txt' }
+ id = "deff712f05a90d96edbd70facc47d944be5897e3"
+ get(
+ "/projects/subproject1/repository/#{@repository.id}/revisions/#{id}/diff/sources/watchers_controller.rb",
+ :params => {:format => 'txt'}
+ )
assert_response :success
assert a = css_select("a.diff").first
assert_equal 'Unified diff', a.text
get a['href']
assert_response :success
- assert_match /\Acommit deff712f05a90d96edbd70facc47d944be5897e3/, response.body
+ assert_match /\Acommit #{id}/, response.body
end
def test_entry_txt_should_return_html