Commit 381da58f8a3ea61477f009e71a7e866c4395b2b9
1 parent
cb0f98a9
Exists in
colab
and in
4 other branches
Coverage report for cucumber tests
Showing
3 changed files
with
9 additions
and
0 deletions
Show diff stats
app/controllers/application_controller.rb
... | ... | @@ -9,6 +9,9 @@ class ApplicationController < ActionController::Base |
9 | 9 | |
10 | 10 | protected |
11 | 11 | |
12 | + # We don't have how too test this unless we have the Devise controllers. | |
13 | + # Since creating the controllers looks wronger than not testing this two | |
14 | + # lines. I think we can live without 100% of coverage | |
12 | 15 | def configure_permitted_parameters |
13 | 16 | devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:name, :email, :password, :password_confirmation) } |
14 | 17 | devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name, :email, :password, :password_confirmation, :current_password) } | ... | ... |
features/support/env.rb
1 | +require 'simplecov' | |
2 | +SimpleCov.start | |
3 | +SimpleCov.coverage_dir 'coverage/cucumber' | |
4 | + | |
1 | 5 | # IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. |
2 | 6 | # It is recommended to regenerate this file in the future when you upgrade to a |
3 | 7 | # newer version of cucumber-rails. Consider adding your own code to a new file | ... | ... |
spec/spec_helper.rb