Skip to content

Commit

Permalink
Renamed system reblocks-test to reblocks-tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Feb 19, 2023
1 parent 01e8c98 commit 61da0e5
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 60 deletions.
24 changes: 0 additions & 24 deletions reblocks-test.asd

This file was deleted.

24 changes: 24 additions & 0 deletions reblocks-tests.asd
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
(defsystem "reblocks-tests"
:class :package-inferred-system
:pathname "t"
:depends-on ("reblocks"
"hamcrest"
"reblocks-tests/dependencies"
"reblocks-tests/hooks"
"reblocks-tests/reblocks"
"reblocks-tests/request"
"reblocks-tests/response"
"reblocks-tests/request-handler"
"reblocks-tests/actions"
"reblocks-tests/commands"
"reblocks-tests/default-init"
"reblocks-tests/widgets/mop"
"reblocks-tests/widgets/macroexpansion"
"reblocks-tests/widgets/render-methods")
:perform (test-op (o c)
(unless (symbol-call :rove '#:run c)
(error "Tests failed"))))


(register-system-packages "lack-test" '(#:lack.test))
(register-system-packages "lack-request" '(#:lack.request))
2 changes: 1 addition & 1 deletion reblocks.asd
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
;; lack:builder will try to find `LACK.MIDDLEWARE.SESSION`
;; package
"lack-middleware-session")
:in-order-to ((test-op (test-op "reblocks-test"))))
:in-order-to ((test-op (test-op "reblocks-tests"))))


(register-system-packages "lack-request" '(#:lack.request))
Expand Down
6 changes: 3 additions & 3 deletions t/actions.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(defpackage #:reblocks-test/actions
(defpackage #:reblocks-tests/actions
(:use #:cl
#:rove
#:hamcrest/rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/actions
#:make-action
#:eval-action
Expand All @@ -20,7 +20,7 @@
#:*current-app*)
(:import-from #:serapeum
#:fmt))
(in-package reblocks-test/actions)
(in-package #:reblocks-tests/actions)


(reblocks/app:defapp test-app
Expand Down
4 changes: 2 additions & 2 deletions t/commands.lisp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(defpackage #:reblocks-test/commands
(defpackage #:reblocks-tests/commands
(:use #:cl
#:hamcrest/rove
#:rove)
(:import-from #:reblocks/commands
#:create-command))
(in-package reblocks-test/commands)
(in-package #:reblocks-tests/commands)


(deftest test-create-command
Expand Down
6 changes: 3 additions & 3 deletions t/default-init.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(defpackage #:reblocks-test/default-init
(defpackage #:reblocks-tests/default-init
(:use #:cl
#:rove
#:hamcrest/rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/app
#:defapp))
(in-package reblocks-test/default-init)
(in-package #:reblocks-tests/default-init)


(deftest default-init-method-should-return-string-widget
Expand Down
6 changes: 3 additions & 3 deletions t/dependencies.lisp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(defpackage #:reblocks-test/dependencies
(defpackage #:reblocks-tests/dependencies
(:use #:cl
;; #:cl-mock
;; #:prove
#:rove
;; #:hamcrest/rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:cl-mock
#:invocations
#:with-mocks
Expand All @@ -26,7 +26,7 @@
#:render-in-head)
(:import-from #:str
#:ends-with-p))
(in-package reblocks-test/dependencies)
(in-package #:reblocks-tests/dependencies)


(deftest infer-type
Expand Down
6 changes: 3 additions & 3 deletions t/hooks.lisp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(defpackage #:reblocks-test/hooks
(defpackage #:reblocks-tests/hooks
(:use #:cl
#:rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/hooks
#:get-callbacks
#:*session-hooks*
#:get-callbacks-names
#:with-hook
#:call-next-hook))
(in-package reblocks-test/hooks)
(in-package #:reblocks-tests/hooks)


(deftest empty-call-back-list
Expand Down
6 changes: 3 additions & 3 deletions t/reblocks.lisp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(defpackage #:reblocks-test/reblocks
(defpackage #:reblocks-tests/reblocks
(:use #:cl
#:rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/html
#:with-html-string)
(:import-from #:reblocks/js
#:with-javascript
#:with-javascript-to-string))
(in-package reblocks-test/reblocks)
(in-package #:reblocks-tests/reblocks)


(deftest with-javascript-1
Expand Down
6 changes: 3 additions & 3 deletions t/request-handler.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(defpackage #:reblocks-test/request-handler
(defpackage #:reblocks-tests/request-handler
(:use #:cl
#:rove
#:hamcrest/rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/app
#:defapp
#:*current-app*)
Expand All @@ -17,7 +17,7 @@

;; Just dependencies
(:import-from #:reblocks/session))
(in-package reblocks-test/request-handler)
(in-package #:reblocks-tests/request-handler)


(defapp app-with-init
Expand Down
6 changes: 3 additions & 3 deletions t/request.lisp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(defpackage #:reblocks-test/request
(defpackage #:reblocks-tests/request
(:use #:cl
#:rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/request
#:refresh-request-p
#:get-uri)
Expand All @@ -10,7 +10,7 @@
(:import-from #:lack.request
#:make-request
#:request-uri))
(in-package reblocks-test/request)
(in-package #:reblocks-tests/request)


(deftest refresh-request-p-1
Expand Down
6 changes: 3 additions & 3 deletions t/response.lisp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(defpackage #:reblocks-test/response
(defpackage #:reblocks-tests/response
(:use #:cl
#:rove
#:reblocks-test/utils)
#:reblocks-tests/utils)
(:import-from #:reblocks/response
#:make-uri
#:add-retpath-to))
(in-package reblocks-test/response)
(in-package #:reblocks-tests/response)


(deftest make-uri-test
Expand Down
4 changes: 2 additions & 2 deletions t/utils.lisp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defpackage #:reblocks-test/utils
(defpackage #:reblocks-tests/utils
(:use #:cl)
(:import-from #:alexandria
#:with-gensyms
Expand Down Expand Up @@ -35,7 +35,7 @@
#:is-html
#:catch-hooks
#:assert-hooks-called))
(in-package reblocks-test/utils)
(in-package #:reblocks-tests/utils)


(defmacro with-session (&body body)
Expand Down
4 changes: 2 additions & 2 deletions t/widgets/macroexpansion.lisp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(defpackage #:reblocks-test/widgets/macroexpansion
(defpackage #:reblocks-tests/widgets/macroexpansion
(:use #:cl
#:rove)
(:import-from #:reblocks/widget
#:widget
#:defwidget)
(:import-from #:reblocks/widgets/mop
#:widget-class))
(in-package reblocks-test/widgets/macroexpansion)
(in-package #:reblocks-tests/widgets/macroexpansion)


(deftest test-defwidget-adds-metaclass
Expand Down
4 changes: 2 additions & 2 deletions t/widgets/mop.lisp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defpackage #:reblocks-test/widgets/mop
(defpackage #:reblocks-tests/widgets/mop
(:use #:cl
#:rove)
(:import-from #:reblocks/widget
Expand All @@ -9,7 +9,7 @@
(:import-from #:reblocks/widgets/mop
#:widget-effective-slot-definition
#:widget-direct-slot-definition))
(in-package reblocks-test/widgets/mop)
(in-package #:reblocks-tests/widgets/mop)


(deftest test-direct-slot-definition-class-widget
Expand Down
6 changes: 3 additions & 3 deletions t/widgets/render-methods.lisp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defpackage #:reblocks-test/widgets/render-methods
(defpackage #:reblocks-tests/widgets/render-methods
(:use #:cl
#:rove)
(:import-from #:reblocks/widget
Expand All @@ -7,9 +7,9 @@
#:defwidget)
(:import-from #:reblocks/html
#:with-html)
(:import-from #:reblocks-test/utils
(:import-from #:reblocks-tests/utils
#:is-html))
(in-package reblocks-test/widgets/render-methods)
(in-package #:reblocks-tests/widgets/render-methods)

(defwidget simple-widget ()
())
Expand Down

0 comments on commit 61da0e5

Please sign in to comment.