How can one test if a certain action raises an ActionController::ParameterMissing exception?
For example:
it "raises an exception" do
post :create, {}
expect(response).to raise ActionController::ParameterMissing
end
The above does not seem to work, it will fail the test with the ActionController::ParameterMissing exception.