shpec
shpec copied to clipboard
Assertion failures cause internal error under set -u conditions
To reproduce:
set -u
describe "foobar"
it "maybe succeeds"
assert equal true false
end
end
This leads to an internal failure:
foobar
maybe succeeds
/usr/local/bin/shpec: line 137: _shpec_assertion_printed: unbound variable