Ticket #8033: open_id_cleanup_round_2.diff
| File open_id_cleanup_round_2.diff, 1.0 kB (added by josh, 1 year ago) |
|---|
-
test/open_id_authentication_test.rb
old new 28 28 end 29 29 30 30 def test_authentication_should_fail_when_the_identity_server_times_out 31 @controller.stubs(:open_id_consumer).returns(stub(:begin => Proc.new { raise Timeout::Error }))31 @controller.stubs(:open_id_consumer).returns(stub(:begin => Proc.new { raise Timeout::Error, "Identity server timed out" })) 32 32 33 33 @controller.send(:authenticate_with_open_id, "http://someone.example.com") do |result, identity_url| 34 34 assert result.missing? -
lib/open_id_authentication.rb
old new 40 40 def message 41 41 ERROR_MESSAGES[@code] 42 42 end 43 44 attr_reader :code 43 45 end 44 46 45 47 def self.normalize_url(url)