Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify test path expansions

  • Loading branch information...
commit a8209becfdccfbcae76bfa264f6f23f25c683169 1 parent 1a83bd1
@tpope authored
View
2  test/commit_test.rb
@@ -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
2  test/config_test.rb
@@ -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
2  test/executor_test.rb
@@ -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
2  test/identity_test.rb
@@ -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
2  test/tag_test.rb
@@ -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
2  test/test_helper.rb
@@ -1,4 +1,4 @@
-$:.unshift(File.dirname(File.dirname(__FILE__))+'/lib')
+$:.unshift(File.expand_path('../../lib', __FILE__))
require 'girth'
require 'test/unit'
Please sign in to comment.
Something went wrong with that request. Please try again.