How to test rspecs configure_devise_params in Rails 4? -
simplecov telling me need test method (class requires 100% passing tests in simplecov)
how can go testing these in rspec?
before_filter :configure_devise_params, if: :devise_controller? def configure_devise_params devise_parameter_sanitizer.for(:sign_up) |u| u.permit(:name, :email, :password, :password_confirmation) end devise_parameter_sanitizer.for(:account_update) |u| u.permit(:name, :email, :password, :password_confirmation, :current_password) end end
i have created application_controller_spec.rb file.
Comments
Post a Comment