Skip to content

Commit

Permalink
Add Go testdata to vendor.yml (#4423)
Browse files Browse the repository at this point in the history
* Add Go testdata to vendor.yml

* Fix Go fixtures pattern format

* Add Go fixtures pattern test
  • Loading branch information
fgblomqvist authored and lildude committed Apr 4, 2019
1 parent 6c91e3f commit 1c25169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/linguist/vendor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
# Go dependencies
- Godeps/_workspace/

# Go fixtures
- (^|/)testdata/

# GNU indent profiles
- .indent.pro

Expand Down
3 changes: 3 additions & 0 deletions test/test_blob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ def test_generated

def test_vendored
assert !fixture_blob_memory("Data/README").vendored?

# Go fixtures
assert sample_blob("Go/testdata/foo.yml").vendored?
end

def test_language
Expand Down

0 comments on commit 1c25169

Please sign in to comment.