3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/spec/rails/extensions/action_controller/rescue.rb', line 3
def use_rails_error_handling!
Kernel.warn <<-WARNING
DEPRECATION NOTICE: controller.use_rails_error_handling! is
deprecated and will be removed from a future version of
rspec-rails.
Use rescue_action_in_public!, which is defined directly in
rails' testing framework, instead.
WARNING
if ::Rails::VERSION::STRING =~ /^2\.0/
@use_rails_error_handling = true
else
request.remote_addr = '208.77.188.166'
end
end
|