started to implement transactions.
This commit is contained in:
1 parent
1fa115db79
commit
c5d4e83d44
5 files changed
+52
-23
No files matched your search
@@ -98,16 +98,17 @@
|
||||
create-request {:body (edn->stream security) :headers {"accept" "application/edn"}}
|
||||
_ ((create-security conn) create-request)
|
||||
request {:route-params {:sec-id :new-currency} :headers {"accept" "application/edn"}}
|
||||
resp ((get-security conn) request)]
|
||||
resp ((get-security conn) request)
|
||||
expt {:sec-id :new-currency
|
||||
:interest-rate 100
|
||||
:name nil
|
||||
:description nil
|
||||
:number-of-decimal nil
|
||||
:symbol nil
|
||||
:type nil
|
||||
:volume 0}]
|
||||
resp => (spec-check ::ok)
|
||||
(body resp) => {:sec-id :new-currency
|
||||
:interest-rate 100
|
||||
:name nil
|
||||
:description nil
|
||||
:number-of-decimal nil
|
||||
:symbol nil
|
||||
:type nil
|
||||
:volume 0}))
|
||||
(body resp) => (contains expt)))
|
||||
|
||||
(fact "we should not be able to get-security if it does not exists"
|
||||
(let [conn (create-conn)
|
||||
|
||||
Reference in new issue
Block a user