blob: bdaba8d2d8d86ca65cf424c5b44b117f0a0b2888 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
require 'abstract_unit'
require 'action_controller/metal/strong_parameters'
class ParametersRequireTest < ActiveSupport::TestCase
test "required parameters must be present not merely not nil" do
assert_raises(ActionController::ParameterMissing) do
ActionController::Parameters.new(person: {}).require(:person)
end
end
end
|