Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test that blame is refused while disabled
| -rwxr-xr-x | tests/t0104-tree.sh | 6 |
1 file changed, 6 insertions, 0 deletions
diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh index 03fd9be..2f77b97 100755 --- a/tests/t0104-tree.sh +++ b/tests/t0104-tree.sh @@ -91,6 +91,12 @@ test_expect_success 'the blame stripes are as wide as the escaped line' ' grep "^ \\{31\\}</pre></div>" tmp ' +test_expect_success 'blame is refused unless enabled' ' + cgit_url "bar/blame/file-1" >tmp && + test_grep "^Status: 403" tmp && + test_grep "<div class=.error.>Blame is disabled</div>" tmp +' + # Blame takes a file alone, so on its page the crumbs for the folders above # the file lead to the tree. test_expect_success 'the folder crumbs of a blame page lead to the tree' ' |
