swig@3.04: use full path to ruby in the test

The test would fail if Ruby 2.4 happened to be installed, since the test
hard codes -I/System/Library/Frameworks/Ruby.framework/Headers.
This commit is contained in:
ilovezfs 2017-07-10 01:29:54 -07:00
parent a0eabe7b1f
commit e4356a297e

View file

@ -42,6 +42,6 @@ class SwigAT304 < Formula
system ENV.cc, "-c", "test.c"
system ENV.cc, "-c", "test_wrap.c", "-I/System/Library/Frameworks/Ruby.framework/Headers/"
system ENV.cc, "-bundle", "-flat_namespace", "-undefined", "suppress", "test.o", "test_wrap.o", "-o", "test.bundle"
assert_equal "2", shell_output("ruby run.rb").strip
assert_equal "2", shell_output("/usr/bin/ruby run.rb").strip
end
end