module ParamsWrapperTestHelp
Public Instance Methods
assert_parameters(expected)
click to toggle source
# File actionpack/test/controller/params_wrapper_test.rb, line 14 def assert_parameters(expected) assert_equal expected, self.class.controller_class.last_parameters end
with_default_wrapper_options() { || ... }
click to toggle source
# File actionpack/test/controller/params_wrapper_test.rb, line 8 def with_default_wrapper_options(&block) @controller.class._set_wrapper_options(format: [:json]) @controller.class.inherited(@controller.class) yield end