Sha256: d415f6ab28b030829014ebd57143b5abf5c395e942090237d5948f3783a85400

Contents?: true

Size: 1.75 KB

Versions: 3

Compression:

Stored size: 1.75 KB

Contents

Feature: Chef cookbooks from Opscode Community website

Scenario: A single cookbook, without dependencies
  Given a repository with following Vendorfile:
    """ruby
    chef_cookbook 'apt'
    """
  When I successfully run `vendor sync`
  Then following has been conjured:
    | Name      | cookbooks/apt |
    | With file | metadata.rb   |

Scenario: Dependency hook
  Given a repository with following Vendorfile:
    """ruby
    chef_cookbook 'memcached'
    """
  When I successfully run `vendor sync`
  Then following has been conjured:
    | Name      | cookbooks/memcached | cookbooks/runit |
    | With file | metadata.rb         | metadata.rb     |

Scenario: Ignored dependency
  Given a repository with following Vendorfile:
    """ruby
    chef_cookbook_ignore_dependencies ['runit']
    chef_cookbook 'memcached'
    """
  When I successfully run `vendor sync`
  Then following has been conjured:
    | Name      | cookbooks/memcached |
    | With file | metadata.rb         |
  And following has not been conjured:
    | Name      | cookbooks/runit |
    | With file | metadata.rb     |

Scenario: Ignored all dependencies
  Given a repository with following Vendorfile:
    """ruby
    chef_cookbook_ignore_dependencies true
    chef_cookbook 'chef-server'
    """
  When I successfully run `vendor sync`
  Then following has been conjured:
    | Name      | cookbooks/chef-server |
    | With file | metadata.rb           |
  And following has not been conjured:
    | Name      | cookbooks/runit |
    | With file | metadata.rb     |
  And following has not been conjured:
    | Name      | cookbooks/daemontools |
    | With file | metadata.rb           |
  And following has not been conjured:
    | Name      | cookbooks/apache2 |
    | With file | metadata.rb       |

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vendorificator-0.4.0 features/chef_cookbook.feature
vendorificator-0.3.0 features/chef_cookbook.feature
vendorificator-0.2.0 features/chef_cookbook.feature