Skip to content

Commit

Permalink
Add a normal file before the test run otherwise all add_files fail
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Dec 18, 2024
1 parent 432d401 commit e0868d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/git/git_version_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ class GitVersionTest < ActiveSupport::TestCase
assert v.commit.blank?
assert_empty v.blobs

assert_nothing_raised do
v.add_file('normal_file', StringIO.new('blah'))
end

assert_raise(Git::InvalidPathException) do
v.add_file('///', StringIO.new('blah'))
end
Expand Down

0 comments on commit e0868d1

Please sign in to comment.