Skip to content
Browse files

some loadpath cleanup

  • Loading branch information...
1 parent a313de7 commit fd31be8f678a9d7a865dd2f0617b2d80ddc7ca0f @tpitale tpitale committed Jul 2, 2010
View
1 Rakefile
@@ -1,4 +1,3 @@
-require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
View
2 lib/garb.rb
@@ -1,5 +1,3 @@
-$:.unshift File.expand_path(File.dirname(__FILE__))
-
require 'net/http'
require 'net/https'
View
3 test/test_helper.rb
@@ -5,7 +5,8 @@
require 'shoulda'
require 'mocha'
-require File.dirname(__FILE__) + '/../lib/garb'
+$:.unshift File.expand_path('../../lib', __FILE__)
+require 'garb'
class MiniTest::Unit::TestCase
View
2 test/unit/garb/account_feed_request_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class AccountFeedRequestTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/account_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class AccountTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/authentication_request_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
CA_CERT_FILE = File.join(File.dirname(__FILE__), '..', '/cacert.pem')
View
2 test/unit/garb/data_request_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class DataRequestTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/filter_parameters_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class FilterParametersTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/oauth_session_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class OAuthSessionTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/profile_reports_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
View
2 test/unit/garb/profile_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class ProfileTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/report_parameter_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class ReportParameterTest < MiniTest::Unit::TestCase
View
2 test/unit/garb/report_response_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
SpecialKlass = Class.new(OpenStruct)
View
2 test/unit/garb/report_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
# Also tests Garb::Resource, which is the basis for Garb::Report
View
2 test/unit/garb/resource_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
class TestReport
extend Garb::Resource
View
2 test/unit/garb/session_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '..', '/test_helper')
+require 'test_helper'
module Garb
class SessionTest < MiniTest::Unit::TestCase
View
2 test/unit/garb_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '/test_helper')
+require 'test_helper'
class GarbTest < MiniTest::Unit::TestCase
context "The Garb module" do
View
2 test/unit/symbol_operator_test.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), '..', '/test_helper')
+require 'test_helper'
class SymbolOperatorTest < MiniTest::Unit::TestCase
context "An instance of a SymbolOperator" do

0 comments on commit fd31be8

Please sign in to comment.
Something went wrong with that request. Please try again.