marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.68k stars 128 forks source link

`against-background` failure results in `null` line-number #407

Closed philomates closed 6 years ago

philomates commented 6 years ago
(fact
  (against-background [(f {:a 1 :b 2}) => 1])
  (f {:a 1}) => irrelevant)

results in the following error message which has the line-number set to null

FAIL at (fus_nested_backgrounds.clj:null)
You never said #'f would be called with these arguments:
    [{:a 1}]
FAILURE: 1 check failed.

Running Midje version 1.9.0-alpha10

(I'll take a crack at fixing this when I get a chance; posting here to track the issue while I wrap up other things)

philomates commented 6 years ago

Fixed in https://github.com/marick/Midje/pull/413