Permalink
Browse files

Changed $:

  • Loading branch information...
1 parent 6d39d21 commit 0758b726d307cc0d806b835ae4df5ef462e9b041 @wbzyl committed Jul 8, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/test_helper.rb
View
@@ -2,9 +2,10 @@
require 'test/unit'
require 'rack/test'
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'sinatra/rdiscount'
+path = File.expand_path("../lib" + File.dirname(__FILE__))
+$:.unshift(path) unless $:.include?(path)
+require 'sinatra/rdiscount'
require 'rdiscount'
class Test::Unit::TestCase

0 comments on commit 0758b72

Please sign in to comment.