shpec icon indicating copy to clipboard operation
shpec copied to clipboard

Assertion failures cause internal error under set -u conditions

Open dzuelke opened this issue 6 years ago • 0 comments

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

dzuelke avatar Sep 09 '19 18:09 dzuelke