From b330d1f000ef354a856c43aeaa27e079c89fc822 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 13 Apr 2017 10:00:31 -0400 Subject: [PATCH] Organize coverage dirs (#1695) * Add `Presenters` group to SimpleCov configuration * Move validators to app/validators, add to simplecov config --- app/{lib => validators}/email_validator.rb | 0 app/{lib => validators}/status_length_validator.rb | 0 app/{lib => validators}/url_validator.rb | 0 spec/spec_helper.rb | 4 +++- 4 files changed, 3 insertions(+), 1 deletion(-) rename app/{lib => validators}/email_validator.rb (100%) rename app/{lib => validators}/status_length_validator.rb (100%) rename app/{lib => validators}/url_validator.rb (100%) diff --git a/app/lib/email_validator.rb b/app/validators/email_validator.rb similarity index 100% rename from app/lib/email_validator.rb rename to app/validators/email_validator.rb diff --git a/app/lib/status_length_validator.rb b/app/validators/status_length_validator.rb similarity index 100% rename from app/lib/status_length_validator.rb rename to app/validators/status_length_validator.rb diff --git a/app/lib/url_validator.rb b/app/validators/url_validator.rb similarity index 100% rename from app/lib/url_validator.rb rename to app/validators/url_validator.rb diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a5dce977df8..7038efce1e1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,9 @@ require 'simplecov' SimpleCov.start 'rails' do - add_group "Services", "app/services" + add_group 'Services', 'app/services' + add_group 'Presenters', 'app/presenters' + add_group 'Validators', 'app/validators' end RSpec.configure do |config|