diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Add blame to the source filter and line number docs
Diffstat (limited to 'tests')
-rwxr-xr-xtests/t0201-filters.sh8
1 file changed, 8 insertions, 0 deletions
diff --git a/tests/t0201-filters.sh b/tests/t0201-filters.sh
index 07db677..1dd0910 100755
--- a/tests/t0201-filters.sh
+++ b/tests/t0201-filters.sh
@@ -65,6 +65,14 @@ do
"
done
+test_expect_success 'the blame page goes through the source filter too' '
+ echo "enable-blame=1" >blamerc &&
+ sed "s/^cache-size=.*/cache-size=0/" cgitrc >>blamerc &&
+ CGIT_CONFIG="$PWD/blamerc" QUERY_STRING="url=filter-exec/blame/a%2bb" cgit >tmp &&
+ grep "<td class=.linenumbers.>" tmp &&
+ grep "<code>a+b HELLO$" tmp
+'
+
# A readme read at another branch links into the tree at that branch, which
# the filter is told as the query to follow a path with.
test_expect_success 'the about filter gets the tree url at the readme branch' '