eask repl is incorrectly set as eask-special-p, which means eask-setup-paths isn't called.
Meanwhile, eask test buttercup is not marked as an eask-execution-p.
This means the following works fine:
(require 'buttercup)
(describe "error sanity"
(it "handles user error"
(expect (user-error "blah") :to-throw))
(it "handles signal"
(expect (signal 'error "blah") :to-throw))
However, this will crash the test runner:
(require 'buttercup)
(describe "error failure"
(it "fails on error"
(expect (error "%s" "blah") :to-throw)))
Because of the advice added to error and warn.
I'd put this as a pull request, but that seems overkill for such minimal changes.
eask replis incorrectly set aseask-special-p, which meanseask-setup-pathsisn't called.Meanwhile,
eask test buttercupis not marked as aneask-execution-p.This means the following works fine:
However, this will crash the test runner:
Because of the advice added to
errorandwarn.I'd put this as a pull request, but that seems overkill for such minimal changes.