slagyr / speclj

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

"let" around multiple specs causes only last spec to execute #163

Open whamilton42 opened 7 years ago

whamilton42 commented 7 years ago

Observed this behaviour:

(describe "things"
  (it "a"
    (prn "a")
    (should= 1 1))
  (it "b"
    (prn "b")
    (should= 1 1)))

Both tests execute.

(describe "things"
  (let [x 123]
    (it "a"
      (prn "a")
      (should= 1 1))
    (it "b"
      (prn "b")
      (should= 1 1))))

Only the second test executes.

Is this expected behaviour? What's happening?

mdwhatcott commented 2 years ago

Resolved by #164