Fork me on GitHub
#testing
<
2015-10-18
>
meikemertsch12:10:41

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

meikemertsch12:10:42

I tried to boil it down to the essentials and wrote this: (let [user (atom true)] (expect true @user) (reset! user false))

meikemertsch12:10:06

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

meikemertsch17:10:50

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