Skip to content

Commit d832471

Browse files
committed
Make test > spec dir
1 parent dd2c9de commit d832471

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

CHANGELOG.md

+10-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
1-
# 2013-12028
1+
## 2014-02-04
2+
* Update to give test dir precedence over spec dir
23

3-
Fixes:
44

5-
* fix Regex matching for in nearest spec. Does not require file to be in
6-
spec/test dir. Only needs to be a js/coffee file
5+
## 2013-12-28
6+
* fix Regex matching for in nearest spec. Does not require file to be in
7+
spec/test dir. Only needs to be a js/coffee file
78

89

9-
# 2013-12-19
10+
## 2013-12-19
11+
* fix Regex matching for Mocha #GetNearestSpec
1012

11-
Fixes:
1213

13-
* fix Regex matching for Mocha #GetNearestSpec
14-
15-
16-
# 2013-12-17
17-
18-
Features:
19-
20-
* add `major_filetype` to find dominant filetype in current directory
21-
* refactor logic to find spec command (via language)
14+
## 2013-12-17
15+
* add `major_filetype` to find dominant filetype in current directory
16+
* refactor logic to find spec command (via language)

plugin/spec.vim

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ endfunction
9999

100100
" All Specs
101101
function! RunAllSpecs()
102-
if isdirectory('spec')
103-
let l:spec = "spec"
104-
elseif isdirectory('test')
102+
if isdirectory('test')
105103
let l:spec = "test"
104+
elseif isdirectory('spec')
105+
let l:spec = "spec"
106106
else
107107
let l:spec = ""
108108
endif

0 commit comments

Comments
 (0)