79606825

Date: 2025-05-05 11:30:33
Score: 0.5
Natty:
Report link

It is now possible to get coverage for .erb templates using Simplecov. You just need to make a call to enable_coverage_for_eval in the start block, like this:

require 'simplecov'

SimpleCov.start do
  enable_coverage_for_eval
  ...
  add_group "Views", "app/views"
  ...
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Juan Luis Orozco Villalobos