Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #12 from petertseng/symlink
Browse files Browse the repository at this point in the history
implementation: Test for symlinked files
  • Loading branch information
Katrina Owen authored Jan 2, 2017
2 parents 27da050 + f64b9e0 commit 7fbf583
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions fixtures/tracks/animal/.meta/include-in-fish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This should get included in fish.
1 change: 1 addition & 0 deletions fixtures/tracks/animal/fish/included-via-symlink.txt
8 changes: 8 additions & 0 deletions test/trackler/implementation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ def test_language_and_implementation_specific_readme
assert_equal expected, implementation.readme
end

def test_symlinked_file
problem = Trackler::Problem.new('fish', PATH)
implementation = Trackler::Implementation.new('animal', URL, problem, PATH)

expected = "This should get included in fish.\n"
assert_equal expected, implementation.files['included-via-symlink.txt']
end

def test_missing_implementation
problem = Trackler::Problem.new('apple', PATH)
implementation = Trackler::Implementation.new(TRACK_ID, URL, problem, PATH)
Expand Down

0 comments on commit 7fbf583

Please sign in to comment.