diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-25 17:23:16 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-25 17:23:21 +0100 |
commit | c31cd12bdd941e9a326d89b21d187224c661c485 (patch) | |
tree | dc2009865dd64df394a16e0157f61437544bdb19 /test/test_sandbox_execution.vader | |
parent | 6f76a840f0c79d15fe96f0df827cac75b79ae38f (diff) | |
download | ale-c31cd12bdd941e9a326d89b21d187224c661c485.zip |
Simplify the sandbox check, to save on execution time
Diffstat (limited to 'test/test_sandbox_execution.vader')
-rw-r--r-- | test/test_sandbox_execution.vader | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_sandbox_execution.vader b/test/test_sandbox_execution.vader index a4cd84d6..dc0cb01c 100644 --- a/test/test_sandbox_execution.vader +++ b/test/test_sandbox_execution.vader @@ -27,12 +27,18 @@ After: delfunction TestCallback call ale#linter#Reset() let g:ale_buffer_info = {} + unlet! b:in_sandbox Given foobar (Some imaginary filetype): foo bar baz +Execute(ale#util#InSandbox should return 1 when in a sandbox): + sandbox let b:in_sandbox = ale#util#InSandbox() + + Assert b:in_sandbox, 'ale#util#InSandbox() returned 0 for a sandbox command' + Execute(ALE shouldn't blow up when run from a sandbox): AssertEqual 'foobar', &filetype |