mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
10 lines
341 B
Ruby
10 lines
341 B
Ruby
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
|