Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    2828  end 
    2929 
    3030  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" })) 
    3232 
    3333    @controller.send(:authenticate_with_open_id, "http://someone.example.com") do |result, identity_url| 
    3434      assert result.missing? 
  • lib/open_id_authentication.rb

    old new  
    4040    def message 
    4141      ERROR_MESSAGES[@code] 
    4242    end 
     43 
     44    attr_reader :code 
    4345  end 
    4446 
    4547  def self.normalize_url(url)