fixes #18665 - call #to_h before comparing AC::Parameters to hash
Allows comparisons when ActionController::Parameters is separated from Hash in Rails 5.0. #permit! is now called on inner hashes sent through KeepParam (similar to rails/rails@e86524c in 5.1) so they are included in the #to_h permitted output.
Related issues
Refactor #18665: Foreman::Controller::Parameters tests should ignore hash/AC::Parameters differences
fixes #18665 - call #to_h before comparing AC::Parameters to hash
Allows comparisons when ActionController::Parameters is separated from
Hash in Rails 5.0. #permit! is now called on inner hashes sent through
KeepParam (similar to rails/rails@e86524c in 5.1) so they are included
in the #to_h permitted output.