Permalink
Browse files

Simplify test path expansions

  • Loading branch information...
1 parent 1a83bd1 commit a8209becfdccfbcae76bfa264f6f23f25c683169 @tpope committed Aug 23, 2011
Showing with 6 additions and 6 deletions.
  1. +1 −1 test/commit_test.rb
  2. +1 −1 test/config_test.rb
  3. +1 −1 test/executor_test.rb
  4. +1 −1 test/identity_test.rb
  5. +1 −1 test/tag_test.rb
  6. +1 −1 test/test_helper.rb
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)),'test_helper')
+require File.expand_path('../test_helper', __FILE__)
class CommitTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)),'test_helper')
+require File.expand_path('../test_helper', __FILE__)
class ConfigTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)),'test_helper')
+require File.expand_path('../test_helper', __FILE__)
class ExecutorTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)),'test_helper')
+require File.expand_path('../test_helper', __FILE__)
class IdentityTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(File.expand_path(__FILE__)),'test_helper')
+require File.expand_path('../test_helper', __FILE__)
class TagTest < Test::Unit::TestCase
View
@@ -1,4 +1,4 @@
-$:.unshift(File.dirname(File.dirname(__FILE__))+'/lib')
+$:.unshift(File.expand_path('../../lib', __FILE__))
require 'girth'
require 'test/unit'

0 comments on commit a8209be

Please sign in to comment.