Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #86 from tobiashm/test-require
Browse files Browse the repository at this point in the history
Fixing tests
  • Loading branch information
dennisreimann committed Mar 5, 2015
2 parents 56a5290 + b6402eb commit 624f282
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 42 deletions.
1 change: 1 addition & 0 deletions test/test_association.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require "minitest/autorun"
require "openid/association"
require "openid/protocolerror"

module OpenID
class AssociationTestCase < Minitest::Test
Expand Down
2 changes: 2 additions & 0 deletions test/test_associationmanager.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
require "minitest/autorun"
require "testutil"
require "openid/consumer/associationmanager"
require "openid/association"
require "openid/dh"
require "openid/util"
require "openid/cryptutil"
require "openid/message"
require "openid/protocolerror"
require "openid/store/memory"
require "util"
require "time"
Expand Down
8 changes: 2 additions & 6 deletions test/test_discover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -746,13 +746,9 @@ def test_discover_function
# XXX these were all different tests in python, but they're
# combined here so I only have to use with_method_overridden
# once.
discoverXRI = Proc.new { |identifier|
return 'XRI'
}
discoverXRI = Proc.new { |identifier| 'XRI' }

discoverURI = Proc.new { |identifier|
return 'URI'
}
discoverURI = Proc.new { |identifier| 'URI' }

OpenID.extend(OverrideMethodMixin)

Expand Down
2 changes: 1 addition & 1 deletion test/test_discovery_manager.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'minitest/autorun'
require 'openid/consumer/discovery_manager'
require 'openid/consumer'
require 'testutil'

module OpenID
Expand Down
34 changes: 0 additions & 34 deletions test/test_extras.rb

This file was deleted.

2 changes: 1 addition & 1 deletion test/test_pape.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require 'openid/extensions/pape'
require 'openid/message'
require 'openid/server'
require 'openid/consumer/responses'
require 'openid/consumer'

module OpenID
module PAPETest
Expand Down

0 comments on commit 624f282

Please sign in to comment.