summaryrefslogtreecommitdiff
path: root/test/test_ale_info_to_clipboard.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-05-28 20:27:10 +0100
committerw0rp <devw0rp@gmail.com>2019-05-28 20:27:10 +0100
commit90b1ea230db9132d7ef455ea3b395733c12206e1 (patch)
treecf2e386d93b6940a94e7769b09c47be6b8300407 /test/test_ale_info_to_clipboard.vader
parent67d7caee304a330cee8e1f8eb7d805da327a5b34 (diff)
downloadale-90b1ea230db9132d7ef455ea3b395733c12206e1.zip
Fix #2438 - Print a friendly message when the clipboard is not available
Diffstat (limited to 'test/test_ale_info_to_clipboard.vader')
-rw-r--r--test/test_ale_info_to_clipboard.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_ale_info_to_clipboard.vader b/test/test_ale_info_to_clipboard.vader
new file mode 100644
index 00000000..2014a310
--- /dev/null
+++ b/test/test_ale_info_to_clipboard.vader
@@ -0,0 +1,15 @@
+After:
+ unlet! g:output
+
+Execute(ALEInfoToClipboard should that clipboard support is required):
+ " When run in the Docker image, there's no clipboard support, so this test
+ " will actually run.
+ if !has('clipboard')
+ let g:output = ''
+
+ redir => g:output
+ :ALEInfoToClipboard
+ redir END
+
+ AssertEqual 'clipboard not available. Try :ALEInfoToFile instead.', join(split(g:output))
+ endif