mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
eeb7736860
5 changed files with 9 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
require 'logger'
|
require 'active_support/logger'
|
||||||
require 'controller/fake_controllers'
|
require 'controller/fake_controllers'
|
||||||
|
|
||||||
class Address
|
class Address
|
||||||
|
@ -23,7 +23,7 @@ class AddressesTest < ActionController::TestCase
|
||||||
super
|
super
|
||||||
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
||||||
# a more accurate simulation of what happens in "real life".
|
# a more accurate simulation of what happens in "real life".
|
||||||
@controller.logger = Logger.new(nil)
|
@controller.logger = ActiveSupport::Logger.new(nil)
|
||||||
|
|
||||||
@request.host = "www.nextangle.com"
|
@request.host = "www.nextangle.com"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
require 'logger'
|
require 'active_support/logger'
|
||||||
require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
|
require 'pp' # require 'pp' early to prevent hidden_methods from not picking up the pretty-print methods until too late
|
||||||
|
|
||||||
# Provide some controller to run the tests on.
|
# Provide some controller to run the tests on.
|
||||||
|
@ -142,7 +142,7 @@ class PerformActionTest < ActionController::TestCase
|
||||||
|
|
||||||
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
||||||
# a more accurate simulation of what happens in "real life".
|
# a more accurate simulation of what happens in "real life".
|
||||||
@controller.logger = Logger.new(nil)
|
@controller.logger = ActiveSupport::Logger.new(nil)
|
||||||
|
|
||||||
@request = ActionController::TestRequest.new
|
@request = ActionController::TestRequest.new
|
||||||
@response = ActionController::TestResponse.new
|
@response = ActionController::TestResponse.new
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
require 'logger'
|
require 'active_support/logger'
|
||||||
|
|
||||||
class CaptureController < ActionController::Base
|
class CaptureController < ActionController::Base
|
||||||
def self.controller_name; "test"; end
|
def self.controller_name; "test"; end
|
||||||
|
@ -39,7 +39,7 @@ class CaptureTest < ActionController::TestCase
|
||||||
super
|
super
|
||||||
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
||||||
# a more accurate simulation of what happens in "real life".
|
# a more accurate simulation of what happens in "real life".
|
||||||
@controller.logger = Logger.new(nil)
|
@controller.logger = ActiveSupport::Logger.new(nil)
|
||||||
|
|
||||||
@request.host = "www.nextangle.com"
|
@request.host = "www.nextangle.com"
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
require 'abstract_unit'
|
require 'abstract_unit'
|
||||||
require 'controller/fake_models'
|
require 'controller/fake_models'
|
||||||
|
require 'active_support/logger'
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
|
|
||||||
class RenderJsonTest < ActionController::TestCase
|
class RenderJsonTest < ActionController::TestCase
|
||||||
|
@ -69,7 +70,7 @@ class RenderJsonTest < ActionController::TestCase
|
||||||
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
# enable a logger so that (e.g.) the benchmarking stuff runs, so we can get
|
||||||
# a more accurate simulation of what happens in "real life".
|
# a more accurate simulation of what happens in "real life".
|
||||||
super
|
super
|
||||||
@controller.logger = Logger.new(nil)
|
@controller.logger = ActiveSupport::Logger.new(nil)
|
||||||
|
|
||||||
@request.host = "www.nextangle.com"
|
@request.host = "www.nextangle.com"
|
||||||
end
|
end
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
*José Valim*
|
*José Valim*
|
||||||
|
|
||||||
## Rails 3.1.1 ##
|
## Rails 3.1.1 (October 07, 2011) ##
|
||||||
|
|
||||||
* Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes #3091. *Santiago Pastorino*
|
* Add jquery-rails to Gemfile of plugins, test/dummy app needs it. Closes #3091. *Santiago Pastorino*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue