Defect #31141 » fix-31141-1.diff
test/integration/repositories_git_test.rb | ||
---|---|---|
92 | 92 |
assert_match /\Acommit deff712f05a90d96edbd70facc47d944be5897e3/, response.body |
93 | 93 |
end |
94 | 94 | |
95 |
def test_entry_txt_should_return_html |
|
96 |
@repository.fetch_changesets |
|
97 |
assert_equal NUM_REV, @repository.changesets.count |
|
98 | ||
99 |
get "/projects/subproject1/repository/#{@repository.id}/revisions/deff712f05a90d96edbd70facc47d944be5897e3/entry/new_file.txt" |
|
100 |
assert_response :success |
|
101 | ||
102 |
assert l1 = css_select("#L1").first |
|
103 |
assert l1_code = css_select(l1, "td.line-code").first |
|
104 |
assert_match 'This is a brand new file', l1_code.text |
|
105 |
end |
|
95 | 106 |
else |
96 | 107 |
puts "Git test repository NOT FOUND. Skipping integration tests !!!" |
97 | 108 |
def test_fake; assert true end |
test/integration/routing/repositories_test.rb | ||
---|---|---|
22 | 22 |
class RoutingRepositoriesTest < Redmine::RoutingTest |
23 | 23 | |
24 | 24 |
def setup |
25 |
@paths = ['path/to/file.c', 'path/to/index.html', 'raw/file.c'] |
|
25 |
@paths = ['path/to/index.html', |
|
26 |
'path/to/file.c', 'path/to/file.yaml', 'path/to/file.txt', |
|
27 |
'raw/file.c'] |
|
26 | 28 |
end |
27 | 29 | |
28 | 30 |
def test_repositories_resources |
- « Previous
- 1
- 2
- Next »