Skip to content

Commit

Permalink
Don't require body for Toucan 1 style with-temp (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
camsaul authored Jan 11, 2023
1 parent 503fb32 commit 2661cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toucan1/src/toucan/util/test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
(s/fdef with-temp*
:args (s/cat :bindings (s/spec (s/+ (s/cat :model some?
:binding+properties ::binding+properties)))
:body (s/+ any?))
:body (s/* any?))
:ret any?)

(defn with-temp-defaults
Expand Down
3 changes: 2 additions & 1 deletion toucan1/test/toucan/util/test_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
`(t1.u.test/with-temp* [model [{:keys [~'a]} {}]] :ok)
`(t1.u.test/with-temp* [model [~'instance {}] model [~'instance]] :ok)
`(t1.u.test/with-temp* [model [~'instance {}] model [~'_]] :ok)
`(t1.u.test/with-temp* [model [~'instance {}] model [~'instance]] :ok)))
`(t1.u.test/with-temp* [model [~'instance {}] model [~'instance]] :ok)
`(t1.u.test/with-temp* [model [~'instance {}] model [~'instance]])))

0 comments on commit 2661cf5

Please sign in to comment.