Sha256: a033c1561d2813ad27a75670a2aaed7fb39094e2d2c48855f4f02aeeca830fdd

Contents?: true

Size: 1.77 KB

Versions: 5

Compression:

Stored size: 1.77 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 run vendor command "install"
  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 run vendor command "install"
  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 run vendor command "install"
  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 run vendor command "install"
  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

5 entries across 5 versions & 1 rubygems

Version Path
vendorificator-0.6.0 features/chef_cookbook.feature
vendorificator-0.5.3 features/chef_cookbook.feature
vendorificator-0.5.2 features/chef_cookbook.feature
vendorificator-0.5.1 features/chef_cookbook.feature
vendorificator-0.5.0 features/chef_cookbook.feature