mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 16:41:31 +00:00
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
This commit is contained in:
parent
1286ee29d9
commit
0fd42d43bd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user