This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Updates test to work with ruby 1.8.7

Updates a hash with the old hash syntax
  • Loading branch information...
1 parent d51b1be commit 21495e2d15e79b28493d0ac4f96f91dfc60a3275 @edelpero edelpero committed Dec 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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]

0 comments on commit 21495e2

Please sign in to comment.