Permalink
Browse files

Don't need to fool with load path.

  • Loading branch information...
1 parent 8fe8241 commit 92836eec81d45566e730eda6da4429ec35ac9f88 @jnunemaker committed Apr 1, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 test/helper.rb
View
@@ -4,10 +4,12 @@
require 'fakeweb'
require 'mocha'
require 'helpers/output'
+require 'pathname'
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-$LOAD_PATH.unshift(File.dirname(__FILE__))
-require 'gemwhois'
+dir = Pathname(__FILE__).join('..', '..', 'lib')
+
+require dir.join('gemwhois').expand_path
+require dir.join('rubygems', 'commands', 'whois_command').expand_path
FakeWeb.allow_net_connect = false

0 comments on commit 92836ee

Please sign in to comment.