Is someone testing with expectations and can help me figuring something out? In general I need to check different scenarios with different users (let’s call the scenarios watching, searching and browsing and the user setups Anna, Berta and Colin). At any time of running the checks I cannot be sure that there are users with the proper configurations so I want to create a new user and afterwards tidy up again by deleting that user. My problem is that this doesn’t seem to work as expected
I tried to boil it down to the essentials and wrote this:
(let [user (atom true)]
(expect true @user)
(reset! user false))
I know this is really in the essentials as I am using an atom here to explain it instead of our API calls, but it gives me the same problem, as the result is
expected: true
was: false
Ah, got Jay Fields to answer me. In case someone else might end up with a similar problem: This works: https://gist.github.com/MeikeMertsch/0799f44fe534ff6ee089