Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: nested-params
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.327 kb
require 'test_helper'
require 'action_controller/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: {}).required(:person)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.