diff options
author | Bozhidar Batsov <bozhidar@batsov.com> | 2016-02-28 12:05:17 +0200 |
---|---|---|
committer | Bozhidar Batsov <bozhidar@batsov.com> | 2016-02-28 12:05:17 +0200 |
commit | 83e15cb331f07c6223359417c5773560a3b3ab99 (patch) | |
tree | f9f9dd55f6bafd2370e70c761a671b8a485874a1 /test/cider-classpath-tests.el | |
parent | 5801074a78e8b20051d800453e9f3676ddbbff5e (diff) |
Fix broken classpath test
Diffstat (limited to 'test/cider-classpath-tests.el')
-rw-r--r-- | test/cider-classpath-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cider-classpath-tests.el b/test/cider-classpath-tests.el new file mode 100644 index 00000000..82542218 --- /dev/null +++ b/test/cider-classpath-tests.el @@ -0,0 +1,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))) |