testing

Testing tools, testing philosophy & methodology...
2015-10-18T12:46:41.000030Z

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

2015-10-18T12:48:42.000031Z

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

2015-10-18T12:52:06.000034Z

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

2015-10-18T17:16:50.000036Z

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