Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't need to fool with load path.

  • Loading branch information...
commit 92836eec81d45566e730eda6da4429ec35ac9f88 1 parent 8fe8241
@jnunemaker authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 test/helper.rb
View
8 test/helper.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.