make sure `get-template-for` notices template sources
parent
9a508a8f44
commit
82a331175f
@ -0,0 +1,3 @@
|
||||
#pollen
|
||||
|
||||
42
|
@ -1,11 +1,14 @@
|
||||
#lang at-exp racket/base
|
||||
(require rackunit racket/runtime-path pollen/project)
|
||||
(require rackunit racket/runtime-path pollen/project pollen/render)
|
||||
|
||||
(define-runtime-path pathup-one "data/pathup/subdir/test-pathup-one.html.pm")
|
||||
(define-runtime-path dr-top "data/pathup/pollen.rkt")
|
||||
(define-runtime-path pathup-two "data/pathup/subdir/subdir/test-pathup-two.html.pm")
|
||||
(define-runtime-path dr-sub "data/pathup/subdir/subdir/pollen.rkt")
|
||||
(define-runtime-path template "data/pathup/subdir/template.html")
|
||||
|
||||
(check-false (get-directory-require-files "test-pathup.rkt"))
|
||||
(check-equal? (get-directory-require-files pathup-one) (list dr-top))
|
||||
(check-equal? (get-directory-require-files pathup-two) (list dr-sub))
|
||||
(check-equal? (get-directory-require-files pathup-two) (list dr-sub))
|
||||
(check-equal? (get-template-for pathup-one) template)
|
||||
(check-equal? (get-template-for pathup-two) template)
|
Loading…
Reference in New Issue