Sha256: 925b36cc9036dcd42e8c876fbf2ba08f0430e7a138a1cd08df47cb677c691bfa

Contents?: true

Size: 1.53 KB

Versions: 5

Compression:

Stored size: 1.53 KB

Contents

Feature: Groups
  In order to deploy a specific set of Vim plugins,
  as a lazy Vim user,
  I want to declare groups of flavors.

  Background:
    Given a repository "foo" with versions "1.0 1.1 1.2"
    And a repository "bar" with versions "2.0 2.1 2.2"

  Scenario: Install only runtime dependencies
    Given a flavorfile with:
      """ruby
      flavor '$foo_uri', :group => :runtime
      flavor '$bar_uri', :group => :development
      """
    When I run `vim-flavor install`
    Then it should pass
    And a lockfile is created with:
      """
      $foo_uri (1.2)
      """
    And a flavor "$foo_uri" version "1.2" is deployed to "$home/.vim"
    But a flavor "$bar_uri" is not deployed to "$home/.vim"

  Scenario: The default group
    Given a flavorfile with:
      """ruby
      flavor '$foo_uri'
      flavor '$bar_uri', :group => :development
      """
    When I run `vim-flavor install`
    Then it should pass
    And a lockfile is created with:
      """
      $foo_uri (1.2)
      """
    And a flavor "$foo_uri" version "1.2" is deployed to "$home/.vim"
    But a flavor "$bar_uri" is not deployed to "$home/.vim"

  Scenario: Group a bunch of flavors at once
    Given a flavorfile with:
      """ruby
      group :development do
        flavor '$foo_uri'
        flavor '$bar_uri'
      end
      """
    When I run `vim-flavor install`
    Then it should pass
    And a lockfile is created with:
      """
      """
    But a flavor "$foo_uri" is not deployed to "$home/.vim"
    But a flavor "$bar_uri" is not deployed to "$home/.vim"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vim-flavor-4.0.3 features/flavorfile/groups.feature
vim-flavor-4.0.2 features/flavorfile/groups.feature
vim-flavor-4.0.1 features/flavorfile/groups.feature
vim-flavor-4.0.0 features/flavorfile/groups.feature
vim-flavor-3.0.0 features/flavorfile/groups.feature