Skip to content

Commit d49353e

Browse files
committed
minor cleanup on tests
1 parent 47fc299 commit d49353e

24 files changed

+41
-31
lines changed

test/test_helper.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1+
# ensure test env
2+
13
ENV['RACK_ENV'] = 'test'
24

5+
# simplecov, Travis will call codeclimate
6+
37
require 'simplecov'
48
SimpleCov.start
59

6-
require 'rubygems'
10+
# require third-party code
11+
12+
require 'byebug'
13+
require 'stringio'
714
require 'minitest/autorun'
815
require 'mocha/mini_test'
916
require 'rack/test'
17+
require 'webmock/minitest'
1018

11-
require 'byebug'
19+
# require our lib
1220

1321
$LOAD_PATH << File.dirname(__FILE__) + '/../lib/'
1422
require 'oauth'
15-
require 'stringio'
16-
require 'webmock/minitest'
23+
24+
# require our support code
1725

1826
require 'support/minitest_helpers'

test/test_helper_units.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/units/test_access_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
class TestAccessToken < Minitest::Test
44
def setup

test/units/test_action_controller_request_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
require 'oauth/request_proxy/action_controller_request'
44

test/units/test_cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
require 'oauth/cli'
44

test/units/test_consumer.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
2-
3-
require 'stringio'
1+
require File.expand_path('../../test_helper', __FILE__)
42

53
# This performs testing against Andy Smith's test server http://term.ie/oauth/example/
64
# Thanks Andy.

test/units/test_curb_request_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
begin
44

test/units/test_em_http_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22
begin
33

44
require 'oauth/client/em_http'

test/units/test_em_http_request_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
begin
44

test/units/test_hmac_sha1.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require File.expand_path('../../test_helper_units', __FILE__)
1+
require File.expand_path('../../test_helper', __FILE__)
22

33
class TestSignatureHmacSha1 < Minitest::Test
44
def test_that_hmac_sha1_implements_hmac_sha1

0 commit comments

Comments
 (0)