I was following the tutorial in http://www.speclj.com/tutorial/step7 when I noticed all of my tests pass even when some of them should fail. I then noticed that I have made a mistake:
(around [it] (with-out-str it))
should be
(around [it] (with-out-str (it)))
So, I created a new project
$ lein new speclj speclj-false-positive
And I changed the core_spec.clj to
(describe "a test"
(around [it] (with-out-str it))
(it "FIXME, I fail."
(should= 0 1)))
And voila, the test passes!
Please can anyone explain whether this is expected behavior and why?
I was following the tutorial in http://www.speclj.com/tutorial/step7 when I noticed all of my tests pass even when some of them should fail. I then noticed that I have made a mistake:
(around [it] (with-out-str it))
should be(around [it] (with-out-str (it)))
So, I created a new project
$ lein new speclj speclj-false-positive
And I changed the core_spec.clj to
And voila, the test passes!
Please can anyone explain whether this is expected behavior and why?
Thanks in advance