aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorDamien Mathieu <42@dmathieu.com>2011-08-23 11:02:44 +0200
committerDamien Mathieu <42@dmathieu.com>2011-08-24 09:52:00 +0200
commit13dd7758cedf6152835c4c72b69b1fe631a60733 (patch)
tree139f4a047fa59403fa3b0c854f98ba26cffa43da /actionpack/test
parent7079701e5bfe3b8d6e8339f2cc4964e3608f1ffe (diff)
downloadrails-13dd7758cedf6152835c4c72b69b1fe631a60733.tar.gz
rails-13dd7758cedf6152835c4c72b69b1fe631a60733.tar.bz2
rails-13dd7758cedf6152835c4c72b69b1fe631a60733.zip
remove useless rescue
params is a method, defined in every controller, which always returns a hash. If it raises a NoMethodError, it means there's a bug somewhere else, which we want to know about.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/abstract_unit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/test/abstract_unit.rb b/actionpack/test/abstract_unit.rb
index 24d071df39..aa7a01f6c9 100644
--- a/actionpack/test/abstract_unit.rb
+++ b/actionpack/test/abstract_unit.rb
@@ -142,7 +142,11 @@ class RoutedRackApp
end
class BasicController
- attr_accessor :request
+ attr_accessor :request, :params
+
+ def initialize
+ @params = {}
+ end
def config
@config ||= ActiveSupport::InheritableOptions.new(ActionController::Base.config).tap do |config|