Skip to content

Commit 158af81

Browse files
committed
Add and update comments
1 parent f705bda commit 158af81

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/rspec/rails/view_rendering.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def render_views?
3939
self.class.render_views? || !controller.class.respond_to?(:view_paths)
4040
end
4141

42+
# @private
4243
class EmptyTemplateResolverFactory
4344
def initialize(path)
4445
@path = path
@@ -53,6 +54,10 @@ def resolver
5354
end
5455
end
5556

57+
# Delegates find_templates to the submitted resolver and then returns templates
58+
# with modified source
59+
#
60+
# @private
5661
class EmptyTemplateResolverDecorator
5762
def initialize(resolver)
5863
@resolver = resolver
@@ -78,8 +83,8 @@ def find_templates(*args)
7883
end
7984
end
8085

81-
# Delegates find_all to the submitted path set and then returns templates
82-
# with modified source
86+
# Delegates find_templates to the submitted path set and then returns
87+
# templates with modified source
8388
#
8489
# @private
8590
class EmptyTemplateFileSystemResolver < ::ActionView::FileSystemResolver

0 commit comments

Comments
 (0)