slagyr / speclj

pronounced "speckle": a TDD/BDD framework for Clojure.
MIT License
458 stars 58 forks source link

All tests pass when using (around [it] (with-out-str it)) #141

Closed kepinpin closed 9 years ago

kepinpin commented 9 years ago

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?

Thanks in advance