summaryrefslogtreecommitdiff
path: root/test/cider-classpath-tests.el
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2016-02-28 12:05:17 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2016-02-28 12:05:17 +0200
commit83e15cb331f07c6223359417c5773560a3b3ab99 (patch)
treef9f9dd55f6bafd2370e70c761a671b8a485874a1 /test/cider-classpath-tests.el
parent5801074a78e8b20051d800453e9f3676ddbbff5e (diff)
Fix broken classpath test
Diffstat (limited to 'test/cider-classpath-tests.el')
-rw-r--r--test/cider-classpath-tests.el12
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)))