Skip to content

Commit

Permalink
fix loading relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 22, 2013
1 parent cbec1ca commit 1ef7854
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/ruby/test_helper.rb
@@ -1,5 +1,6 @@
$:.unshift "../../build/src/ruby" # ycpx.so
$:.unshift "../../src/ruby" # ycp.rb
ROOT_DIR = File.expand_path('../../..',__FILE__)
$:.unshift File.expand_path("#{ROOT_DIR}/build/src/ruby",__FILE__) # ycpx.so
$:.unshift File.expand_path("#{ROOT_DIR}/src/ruby",__FILE__) # ycp.rb
ENV["Y2DIR"] = File.dirname(__FILE__)

require 'test/unit'
Expand Down

0 comments on commit 1ef7854

Please sign in to comment.