Skip to content

Commit 03d8cbe

Browse files
committed
Fix controller attribute access.
This fixes the access to the controller attribute, making it clear that the setter should be a `private` internal API. This was reflected previously in the YARD doc, but that did not match the code.
1 parent cd67b84 commit 03d8cbe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rspec/rails/view_rendering.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ module ViewRendering
88

99
# @!attribute [r]
1010
# Returns the controller object instance under test.
11-
attr_accessor :controller
11+
attr_reader :controller
12+
13+
# @private
14+
attr_writer :controller
15+
private :controller=
1216

1317
# DSL methods
1418
module ClassMethods

0 commit comments

Comments
 (0)