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

Changeset 6759

Show
Ignore:
Timestamp:
05/18/07 01:28:43 (1 year ago)
Author:
bitsweat
Message:

Pass stdinput to super.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/integration.rb

    r6722 r6759  
    196196      private 
    197197        class MockCGI < CGI #:nodoc: 
    198           attr_accessor :stdinput, :stdoutput, :env_table 
    199  
    200           def initialize(env, input=nil) 
     198          attr_accessor :stdoutput, :env_table 
     199 
     200          def initialize(env, input = nil) 
    201201            self.env_table = env 
    202             self.stdinput = StringIO.new(input || "") 
    203202            self.stdoutput = StringIO.new 
    204203 
    205             super(
     204            super('query', StringIO.new(input || '')
    206205          end 
    207206        end