aboutsummaryrefslogtreecommitdiff
path: root/src/guff/views/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/views/html')
-rw-r--r--src/guff/views/html/test/auth.cr6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr
index 1baa7de..528b652 100644
--- a/src/guff/views/html/test/auth.cr
+++ b/src/guff/views/html/test/auth.cr
@@ -4,6 +4,10 @@ require "../page"
class Guff::TestAuthHTMLView
TITLE = "Guff Auth Test"
FEATURES = %w{bootstrap font-awesome guff/util}
+ SCRIPTS = %w{
+ /guff-stuff/js/search-field.js
+ /guff-stuff/test/auth.js
+ }
TEMPLATES = TemplateCache.new({
role: "
@@ -27,7 +31,7 @@ class Guff::TestAuthHTMLView
def run(context)
page = PageHTMLView.new(TITLE, self.to_s)
page.add_features(FEATURES)
- page.scripts << "/guff-stuff/test/auth.js"
+ page.scripts.concat(SCRIPTS)
context.response.content_type = page.content_type
context.response.puts page
end