Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
11 lines (9 sloc) 0.329 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 => {}).require(:person)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.