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

Ticket #11553: fixed_reporting_error.diff

File fixed_reporting_error.diff, 0.6 kB (added by kjeldahl, 3 months ago)
  • lib/javascript_test.rb

    old new  
    152164   
    153165      @server = WEBrick::HTTPServer.new(:Port => 4711) # TODO: make port configurable 
    154166      @server.mount_proc("/results") do |req, res| 
    155         @queue.push(req.query['result']) 
     167              if ((req.query['failures'] == '0') and (req.query['errors'] == '0')) 
     168                 @queue.push('SUCCESS') 
     169              else 
     170                @queue.push('FAILED') 
     171                end 
    156172        res.body = "OK" 
    157173      end 
    158174      yield self if block_given?