Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updates test to work with ruby 1.8.7

Updates a hash with the old hash syntax
  • Loading branch information...
commit 21495e2d15e79b28493d0ac4f96f91dfc60a3275 1 parent d51b1be
@edelpero edelpero authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parameters_permit_test.rb
View
4 test/parameters_permit_test.rb
@@ -96,9 +96,9 @@ def assert_filtered_out(params, key)
end
test 'do not break params filtering on nil values' do
- params = ActionController::Parameters.new(a: 1, b: [1, 2, 3], c: nil)
+ params = ActionController::Parameters.new(:a => 1, :b => [1, 2, 3], :c => nil)
- permitted = params.permit(:a, c: [], b: [])
+ permitted = params.permit(:a, :c => [], :b => [])
assert_equal 1, permitted[:a]
assert_equal [1, 2, 3], permitted[:b]
assert_equal nil, permitted[:c]
Please sign in to comment.
Something went wrong with that request. Please try again.