Sha256: ace0f3dac262e8e5fa5c7696ec42b3d8bd104c7cc58dd9a57604cc2e6565b767

Contents?: true

Size: 306 Bytes

Versions: 6

Compression:

Stored size: 306 Bytes

Contents

require "test_helper"

class MergeControllerTest < ActionController::TestCase
  
  test_action :first do
    assert_params %w[a b h]
    assert_equal({"b" => "b"}, params["h"])
  end
  
  test_action :second do
    assert_params %w[b h]
    assert_equal({"b" => "b", "c" => "c"}, params["h"])
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
param_protected-4.0.0 test/merge_controller_test.rb
param_protected-3.0.0 test/merge_controller_test.rb
param_protected-2.0.0 test/merge_controller_test.rb
param_protected-1.3.1 test/merge_controller_test.rb
param_protected-1.3.0 test/merge_controller_test.rb
param_protected-1.2.0 test/merge_controller_test.rb