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

Fixing tests #86

Merged
merged 4 commits into from
Mar 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/openid/trustroot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def TrustRoot._parse_url(url)
end

begin
parsed = URI::parse(url)
parsed = URI::DEFAULT_PARSER.parse(url)
rescue URI::InvalidURIError
return nil
end
Expand Down
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