Skip to content

Commit

Permalink
test helper: respect existing Y2DIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jun 12, 2015
1 parent 6ec2781 commit 127c9bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_helper.rb
@@ -1,4 +1,6 @@
ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
srcdir = File.expand_path("../../src", __FILE__)
y2dirs = ENV.fetch("Y2DIR", "").split(":")
ENV["Y2DIR"] = y2dirs.unshift(srcdir).join(":")

if ENV["COVERAGE"]
require "simplecov"
Expand Down

0 comments on commit 127c9bf

Please sign in to comment.