aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/webservice_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/webservice_test.rb')
-rw-r--r--actionpack/test/controller/webservice_test.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb
index 4558d401b0..bcdb3d5eb7 100644
--- a/actionpack/test/controller/webservice_test.rb
+++ b/actionpack/test/controller/webservice_test.rb
@@ -1,20 +1,16 @@
require File.dirname(__FILE__) + '/../abstract_unit'
-require 'stringio'
class WebServiceTest < Test::Unit::TestCase
-
class MockCGI < CGI #:nodoc:
- attr_accessor :stdinput, :stdoutput, :env_table
+ attr_accessor :stdoutput, :env_table
- def initialize(env, data = '')
+ def initialize(env, data = '')
self.env_table = env
- self.stdinput = StringIO.new(data)
self.stdoutput = StringIO.new
- super()
+ super(nil, StringIO.new(data))
end
end
-
class TestController < ActionController::Base
session :off