Skip to content

Commit

Permalink
make all tests runnable via ruby test_file.rb by loading the helper a…
Browse files Browse the repository at this point in the history
…bsolutely
  • Loading branch information
grosser committed Jul 18, 2012
1 parent 3dce901 commit 0400c67
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion 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'
Expand Down
2 changes: 1 addition & 1 deletion test/backtrace_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

class BacktraceTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion 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'
Expand Down
2 changes: 1 addition & 1 deletion test/catcher_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

class ActionControllerCatcherTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/configuration_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

class ConfigurationTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion 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'

Expand Down
2 changes: 1 addition & 1 deletion 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)
Expand Down
2 changes: 1 addition & 1 deletion test/notice_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

class NoticeTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down
2 changes: 1 addition & 1 deletion test/rack_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

class RackTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/rails_initializer_test.rb
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/helper'
require File.expand_path '../helper', __FILE__

require 'airbrake/rails'

Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down
2 changes: 1 addition & 1 deletion 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

Expand Down
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 0400c67

Please sign in to comment.