blob: 8254221843aa69c9a5fc0c338aa5fc73d651e0b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
(require 'ert)
(require 'noflet)
(require 'cider)
(require 'cider-classpath)
(ert-deftest cider-classpath-not-connected ()
(noflet ((cider-connected-p () nil))
(should-error (cider-classpath) :type 'user-error)))
(ert-deftest cider-classpath-unsupported-op ()
(noflet ((cider-ensure-op-supported (op) nil))
(should-error (cider-classpath) :type 'user-error)))
|