aboutsummaryrefslogtreecommitdiffstats
path: root/community/ruby-rugged/libgit2-fixture-dir.patch
blob: 9d6a24de389be5cb773ea03149b062194200b1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -130,7 +130,8 @@
     end
 
     TEST_DIR = File.dirname(File.expand_path(__FILE__))
-    LIBGIT2_FIXTURE_DIR = File.expand_path("../../vendor/libgit2/tests/resources", __FILE__)
+    LIBGIT2_FIXTURE_DIR = ENV['LIBGIT2_FIXTURE_DIR'] \
+                          || File.expand_path("../../vendor/libgit2/tests/resources", __FILE__)
   end
 
   class OnlineTestCase < TestCase