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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -