Sha256: 9dad393ce7018d0ea2fa1f81cb7a4d74c434239fbf61b84a6d97b4f2e741dcfa
Contents?: true
Size: 673 Bytes
Versions: 3
Compression:
Stored size: 673 Bytes
Contents
require "test_helper" class UsersControllerTest < ActionController::TestCase PARAMS = { :user => { :id => 123, :name => { :first => "chris", :middle => "james", :last => "bottaro"}, :email => "cjbottaro@blah.com" }, :something => "something" } EXPECTED_PARAMS = { "user" => { "name" => {"first" => "chris", "last" => "bottaro"}, "email" => "cjbottaro@blah.com" } } def test_create get :create, PARAMS assert_equal EXPECTED_PARAMS, params end def test_update get :update, PARAMS assert_equal EXPECTED_PARAMS, params end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
cjbottaro-param_protected-1.1.0 | test/users_controller_test.rb |
param_protected-1.2.0 | test/users_controller_test.rb |
param_protected-1.1.0 | test/users_controller_test.rb |