Sha256: 950eecd9c4946bb9d87344a997093db80027a8956c82b6569cb0b26217432417

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 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

2 entries across 2 versions & 1 rubygems

Version Path
vendorificator-0.5.git.v0.4.0.63.g8e9d54d features/chef_cookbook.feature
vendorificator-0.5.git.v0.4.0.60.g9c35209 features/chef_cookbook.feature