Commit 381da58f8a3ea61477f009e71a7e866c4395b2b9

Authored by Rafael Manzo
1 parent cb0f98a9

Coverage report for cucumber tests

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
1 1 #Starts Simplecov
2 2 require 'simplecov'
3 3 SimpleCov.start
  4 +SimpleCov.coverage_dir 'coverage/rspec'
  5 +
4 6 # This file is copied to spec/ when you run 'rails generate rspec:install'
5 7 ENV["RAILS_ENV"] ||= 'test'
6 8 require File.expand_path("../../config/environment", __FILE__)
... ...