Permalink
Browse files

Rename the last occurrence of UnexpectedParameters

  • Loading branch information...
1 parent 18ac587 commit 0102c817bfb8ca6810732e02a6eee888935a1b92 @rafaelfranca rafaelfranca committed Jan 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/parameters/raise_on_unpermitted_parameters_test.rb
@@ -16,7 +16,7 @@ def teardown
fishing: "Turnips"
})
- assert_raises(ActionController::UnexpectedParameters) do
+ assert_raises(ActionController::UnpermittedParameters) do
params.permit(book: [:pages])
end
end
@@ -26,7 +26,7 @@ def teardown
book: { pages: 65, title: "Green Cats and where to find then." }
})
- assert_raises(ActionController::UnexpectedParameters) do
+ assert_raises(ActionController::UnpermittedParameters) do
params.permit(book: [:pages])
end
end

0 comments on commit 0102c81

Please sign in to comment.