aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ruby-unf_ext/test-helper.patch
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2019-05-20 17:49:05 +0100
committerKevin Daudt <kdaudt@alpinelinux.org>2019-05-21 13:38:37 +0000
commitdad002e808bbc06da294cdf0a4a279d30374b08d (patch)
tree7dbf7a8d6d90f8fef2c2d1ffbf5f9d6fe8cb3260 /testing/ruby-unf_ext/test-helper.patch
parent9b98e2e03da4d14e0fe14d97e9f93201cf9669a6 (diff)
downloadaports-dad002e808bbc06da294cdf0a4a279d30374b08d.tar.bz2
aports-dad002e808bbc06da294cdf0a4a279d30374b08d.tar.xz
testing/ruby-unf_ext: new package
Diffstat (limited to 'testing/ruby-unf_ext/test-helper.patch')
-rw-r--r--testing/ruby-unf_ext/test-helper.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/ruby-unf_ext/test-helper.patch b/testing/ruby-unf_ext/test-helper.patch
new file mode 100644
index 0000000000..40c17a7d83
--- /dev/null
+++ b/testing/ruby-unf_ext/test-helper.patch
@@ -0,0 +1,20 @@
+--- a/test/helper.rb
++++ b/test/helper.rb
+@@ -1,17 +1,4 @@
+-require 'rubygems'
+-require 'bundler'
+-begin
+- Bundler.setup(:default, :development)
+-rescue Bundler::BundlerError => e
+- $stderr.puts e.message
+- $stderr.puts "Run `bundle install` to install missing gems"
+- exit e.status_code
+-end
+ require 'test/unit'
+-
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..'))
+-$LOAD_PATH.unshift(File.dirname(__FILE__))
+ require 'unf_ext'
+
+ class Test::Unit::TestCase