Skip to content

Commit

Permalink
πŸ’š kettle-soup-cover is only in coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Mar 22, 2024
1 parent 086b08b commit eacb85c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
require "action_mailer"
require "logger"

# This does not require "simplecov",
# because that has a side-effect of running `.simplecov`
require "kettle-soup-cover" rescue LoadError nil

# RSpec Configs
require "config/byebug"
require "config/rspec/rspec_block_is_expected"
require "config/rspec/rspec_core"
require "config/rspec/version_gem"
require "support/matchers"

# Last thing before this gem is code coverage:
require "simplecov" if defined?(Kettle::Soup::Cover) && Kettle::Soup::Cover::DO_COV
# Last thing before loading this gem is to setup code coverage
begin
# This does not require "simplecov", but
require "kettle-soup-cover"
# has a side-effect of running `.simplecov`
require "simplecov" if defined?(Kettle::Soup::Cover) && Kettle::Soup::Cover::DO_COV
rescue LoadError
nil
end

require "sanitize_email"

0 comments on commit eacb85c

Please sign in to comment.