summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock8
-rw-r--r--spec/rails_helper.rb2
4 files changed, 14 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a6b54a3..1435e74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,6 @@
# Ignore database configuration.
/config/database.yml
.env
+
+# Ignore spec's coverage
+/coverage/*
diff --git a/Gemfile b/Gemfile
index 932eabc..da61184 100644
--- a/Gemfile
+++ b/Gemfile
@@ -57,6 +57,7 @@ group :development, :test do
gem 'faker'
gem 'rspec-rails', '~> 6.0.0'
gem 'shoulda-matchers', '~> 5.0'
+ gem 'simplecov'
end
group :development do
diff --git a/Gemfile.lock b/Gemfile.lock
index cad9d54..51ebfcd 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -75,6 +75,7 @@ GEM
date (3.3.3)
debug (1.7.1)
diff-lcs (1.5.0)
+ docile (1.4.0)
dotenv (2.8.1)
dotenv-rails (2.8.1)
dotenv (= 2.8.1)
@@ -171,6 +172,12 @@ GEM
rspec-support (3.12.0)
shoulda-matchers (5.3.0)
activesupport (>= 5.2.0)
+ simplecov (0.22.0)
+ docile (~> 1.1)
+ simplecov-html (~> 0.11)
+ simplecov_json_formatter (~> 0.1)
+ simplecov-html (0.12.3)
+ simplecov_json_formatter (0.1.4)
thor (1.2.1)
timeout (0.3.2)
tzinfo (2.0.6)
@@ -198,6 +205,7 @@ DEPENDENCIES
rails (~> 7.0.4, >= 7.0.4.2)
rspec-rails (~> 6.0.0)
shoulda-matchers (~> 5.0)
+ simplecov
tzinfo-data
RUBY VERSION
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 9f8c999..a30ead5 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -1,3 +1,5 @@
+require 'simplecov'
+SimpleCov.start
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'