Skip to content
Browse files

make all tests runnable via ruby test_file.rb by loading the helper a…

…bsolutely
  • Loading branch information...
1 parent 3dce901 commit 0400c6716ebe9afdd24cac7d8ec7fa626ce6e8ef @grosser grosser committed Jul 18, 2012
View
2 test/airbrake_tasks_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
require 'rubygems'
require File.dirname(__FILE__) + '/../lib/airbrake_tasks'
View
2 test/backtrace_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class BacktraceTest < Test::Unit::TestCase
View
2 test/capistrano_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
require 'capistrano/configuration'
require 'airbrake/capistrano'
View
2 test/catcher_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class ActionControllerCatcherTest < Test::Unit::TestCase
View
2 test/configuration_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class ConfigurationTest < Test::Unit::TestCase
View
2 test/javascript_notifier_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
require 'airbrake/rails/javascript_notifier'
require 'ostruct'
View
2 test/logger_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class LoggerTest < Test::Unit::TestCase
def stub_http(response, body = nil)
View
2 test/notice_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class NoticeTest < Test::Unit::TestCase
View
2 test/notifier_test.rb
@@ -1,4 +1,4 @@
-require File.expand_path( File.join(File.dirname(__FILE__), 'helper') )
+require File.expand_path '../helper', __FILE__
class NotifierTest < Test::Unit::TestCase
View
2 test/rack_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class RackTest < Test::Unit::TestCase
View
2 test/rails_initializer_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
require 'airbrake/rails'
View
2 test/recursion_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class RecursionTest < Test::Unit::TestCase
should "not allow infinite recursion" do
View
2 test/sender_test.rb
@@ -1,4 +1,4 @@
-require File.expand_path( File.join(File.dirname(__FILE__), 'helper') )
+require File.expand_path '../helper', __FILE__
class SenderTest < Test::Unit::TestCase
View
2 test/user_informer_test.rb
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/helper'
+require File.expand_path '../helper', __FILE__
class UserInformerTest < Test::Unit::TestCase
should "modify output if there is an airbrake id" do

0 comments on commit 0400c67

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