Sha256: 35e258593a9b8ac38d73a08cf734d0d36057665ef5d541a9ff9707cb365c2d53
Contents?: true
Size: 1.51 KB
Versions: 3
Compression:
Stored size: 1.51 KB
Contents
Feature: weird edge cases Scenario: module with a .gitignore file Given a repository with following Vendorfile: """ruby vendor 'ignore', :version => 1 do File.open('.gitignore', 'w') { |f| f.puts 'ignored.txt' } end """ When I run vendor command "install" Then the following has been conjured: | Name | ignore | | With file | .gitignore | When I write to "vendor/ignore/ignored.txt" with: """ whatever """ Then git repository is clean When I change Vendorfile to: """ruby vendor 'ignore', :version => 2 do File.open('files.txt', 'w') { |f| f.puts Dir.entries('.').join("\n") } File.open('.gitignore', 'w') { |f| f.puts 'ignored.txt' } end """ And I run vendor command "install" Then the file "vendor/ignore/files.txt" should not contain "ignored.txt" And the file "vendor/ignore/ignored.txt" should contain exactly: """ whatever """ And git repository is clean Scenario: Git overlay in root directory Given a repository with following Vendorfile: """ruby overlay '/' do git "file://#{ENV['FIXTURES_DIR']}/git/testrepo" end """ When I run vendor command "install" Then following has been conjured: | Name | testrepo | | Branch | vendor/overlay/layer/testrepo | | Version | 10e9ac58c77bc229d8c59a5b4eb7422916453148 | | With file | test/alias.c | | Path | . |
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vendorificator-0.5.2 | features/edgecases.feature |
vendorificator-0.5.1 | features/edgecases.feature |
vendorificator-0.5.0 | features/edgecases.feature |