2018-04-17 04:29:13 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('cucumber', 'cucumber')
|
2018-04-17 04:29:13 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-04-17 04:29:13 +00:00
|
|
|
|
|
|
|
Execute(Should require the nearest features dir, if one is found):
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#test#SetFilename('../cucumber_fixtures/features/cuke.feature')
|
2018-04-17 04:29:13 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'cucumber',
|
|
|
|
\ 'cucumber --dry-run --quiet --strict --format=json '
|
|
|
|
\ . '-r ' . ale#Escape(ale#path#Simplify(g:dir . '/../cucumber_fixtures/features/')) . ' %t'
|
2018-04-17 04:29:13 +00:00
|
|
|
|
|
|
|
Execute(Should require nothing if no features dir is found):
|
|
|
|
call ale#test#SetFilename('something/without/a/features/dir')
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'cucumber',
|
|
|
|
\ 'cucumber --dry-run --quiet --strict --format=json %t'
|