Sha256: 5e3cbd60836c1677a069fb6750926a1345c39ad29a24a9a3a834340bf9492af1

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

Feature: `rubygems_bundler` and `chef_berkshelf` shortcuts for tools

Scenario: rubygems_bundler
  Given a repository with following Vendorfile:
    """ruby
    # Delete Bundler's variables
    %w[RUBYOPT BUNDLE_PATH BUNDLE_BIN_PATH BUNDLE_GEMFILE].each do |var|
      ENV.delete(var)
    end
    rubygems_bundler
    """
  And following Gemfile:
    """ruby
    source "file://#{ENV['FIXTURES_DIR']}/rubygems"
    gem "hello"
    """
  When I run vendor command "install"
  Then following has been conjured:
    | Name         | rubygems        |
    | Path         | vendor/cache    |
    | With file    | hello-0.0.1.gem |
    | Without file | first-0.gem     |

@berkshelf
Scenario: chef_berkshelf
  Given a repository with following Vendorfile:
    """ruby
    chef_berkshelf
    """
  And a file named "Berksfile" with:
    """ruby
    site :opscode
    cookbook 'build-essential'
    """
  And I successfully run `berks install`
  And I successfully run `git add Berksfile Berksfile.lock`
  And I successfully run `git commit -m Berksfile`
  When I run vendor command "install"
  Then following has been conjured:
    | Name         | cookbooks                   |
    | With file    | build-essential/metadata.rb |

@berkshelf
Scenario: postprocessing tool
  Given a repository with following Vendorfile:
    """ruby
    chef_berkshelf do
      FileUtils::rm_rf 'vendor/cookbooks/runit'
    end
    """
  And a file named "Berksfile" with:
    """ruby
    site :opscode
    cookbook 'runit'
    """
  And I successfully run `berks install`
  And I successfully run `git add Berksfile Berksfile.lock`
  And I successfully run `git commit -m Berksfile`
  When I run vendor command "install"
  Then following has been conjured:
    | Name         | cookbooks                   |
    | With file    | build-essential/metadata.rb |
    | With file    | yum/metadata.rb             |
    | Without file | runit/metadata.rb           |

Version data entries

4 entries across 4 versions & 1 rubygems

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