Sha256: df56de0478063971920d7f7371362704e512bac336d0cb0bde03324a519d70c8
Contents?: true
Size: 1.76 KB
Versions: 2
Compression:
Stored size: 1.76 KB
Contents
Feature: Dependencies In order to easily test Vim plugins with dependencies, As a lazy Vim user, I want to hide details to do proper testing. Background: Given a repository "kana/vim-vspec" from offline cache And a repository "kana/vim-textobj-user" from offline cache Scenario: Testing a Vim plugin with dependencies Given a flavorfile with: """ruby flavor 'kana/vim-textobj-user', '~> 0.3' """ And a file named "plugin/textobj/date.vim" with: """vim call textobj#user#plugin('date', { \ '-': { \ '*pattern*': '\v<\d{4}-\d{2}-\d{2}>', \ 'select': ['ad', 'id'], \ } \ }) """ And a file named "t/basics.vim" with: """vim " Tests are written with vim-vspec. runtime! plugin/textobj/date.vim describe 'Text object: date' it 'is available in Visual mode' Expect maparg('ad', 'v') != '' end end """ When I run `vim-flavor test` Then it should pass with regexp: """ -------- Preparing dependencies Checking versions... Use kana/vim-textobj-user ... 0.3.12 Use kana/vim-vspec ... 1.1.0 Deploying plugins... kana/vim-textobj-user 0.3.12 ... done kana/vim-vspec 1.1.0 ... done -------- Testing a Vim plugin Files=0, Tests=0, \d+ wallclock secs .* Result: NOTESTS t/basics.vim .. ok All tests successful. Files=1, Tests=1, \d+ wallclock secs .* Result: PASS """ And a lockfile is created with: """ kana/vim-textobj-user (0.3.12) kana/vim-vspec (1.1.0) """ And a dependency "kana/vim-vspec" is stored in ".vim-flavor/deps" And a dependency "kana/vim-textobj-user" is stored in ".vim-flavor/deps"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vim-flavor-1.0.3 | features/testing_vim_plugins/dependencies.feature |
vim-flavor-1.0.2 | features/testing_vim_plugins/dependencies.feature |