summaryrefslogtreecommitdiff
path: root/test/test_bingo_find_project_root.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_bingo_find_project_root.vader')
-rw-r--r--test/test_bingo_find_project_root.vader21
1 files changed, 0 insertions, 21 deletions
diff --git a/test/test_bingo_find_project_root.vader b/test/test_bingo_find_project_root.vader
deleted file mode 100644
index 540183d0..00000000
--- a/test/test_bingo_find_project_root.vader
+++ /dev/null
@@ -1,21 +0,0 @@
-Before:
- call ale#test#SetDirectory('/testplugin/test')
- runtime ale_linters/go/bingo.vim
-
-After:
- call ale#test#RestoreDirectory()
- call ale#linter#Reset()
-
-Execute(Should return directory for 'go.mod' if found in parent directory):
- call ale#test#SetFilename('go_files/test.go')
-
- AssertEqual
- \ ale#path#Simplify(g:dir . '/go_files'),
- \ ale_linters#go#bingo#FindProjectRoot(bufnr(''))
-
-Execute(Should return nearest directory with '.git' if found in parent directory):
- call ale#test#SetFilename('test.go')
-
- AssertEqual
- \ fnamemodify(ale#path#Simplify('/testplugin'), ':p:h'),
- \ ale_linters#go#bingo#FindProjectRoot(bufnr(''))