Sha256: b4c6eb69dc3d61814f5dafa0ecec7eb8c34a8771439fae08c099f524817a6acd

Contents?: true

Size: 976 Bytes

Versions: 2

Compression:

Stored size: 976 Bytes

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

Version data entries

2 entries across 2 versions & 1 rubygems

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