Visitar URL original
Fix code coverage · ViewComponent/view_component@5ed19d7 · GitHub
Skip to content

Commit 5ed19d7

Browse files
committed
Fix code coverage
1 parent 3c76bcb commit 5ed19d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎lib/view_component/compiler.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def with_lock(&block)
100100

101101
def define_render_template_for
102102
if component_class.instance_methods(false).include?(:render_template_for)
103+
# :nocov:
103104
component_class.send(:remove_method, :render_template_for)
105+
# :nocov:
104106
end
105107

106108
variant_elsifs = variants.compact.uniq.map do |variant|

0 commit comments

Comments
 (0)