Commit 24bbc96f5cf07b1748d30d60cfb8f8bfa7275b81
1 parent
ce2f073d
Exists in
colab
and in
4 other branches
Coveralls removed from Cucumber tests and better approach to strong params with Devise
Showing
2 changed files
with
2 additions
and
7 deletions
Show diff stats
app/controllers/application_controller.rb
@@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base | @@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base | ||
13 | # Since creating the controllers looks wronger than not testing this two | 13 | # Since creating the controllers looks wronger than not testing this two |
14 | # lines. I think we can live without 100% of coverage | 14 | # lines. I think we can live without 100% of coverage |
15 | def configure_permitted_parameters | 15 | def configure_permitted_parameters |
16 | - devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:name, :email, :password, :password_confirmation) } | ||
17 | - devise_parameter_sanitizer.for(:account_update) { |u| u.permit(:name, :email, :password, :password_confirmation, :current_password) } | 16 | + devise_parameter_sanitizer.for(:sign_up) << :name |
17 | + devise_parameter_sanitizer.for(:account_update) << :name | ||
18 | end | 18 | end |
19 | end | 19 | end |
features/support/env.rb
1 | require 'simplecov' | 1 | require 'simplecov' |
2 | -require 'coveralls' | ||
3 | 2 | ||
4 | SimpleCov.start do | 3 | SimpleCov.start do |
5 | - formatter SimpleCov::Formatter::MultiFormatter[ | ||
6 | - Coveralls::SimpleCov::Formatter, | ||
7 | - SimpleCov::Formatter::HTMLFormatter | ||
8 | - ] | ||
9 | coverage_dir 'coverage/cucumber' | 4 | coverage_dir 'coverage/cucumber' |
10 | 5 | ||
11 | add_group "Models", "app/models" | 6 | add_group "Models", "app/models" |