We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a52dca9 commit 20f48e3Copy full SHA for 20f48e3
spec/rspec/rails/view_rendering_spec.rb
@@ -121,5 +121,21 @@ def example.controller
121
end
122
123
124
+
125
+ context 'when render_views? is false' do
126
+ let(:controller) { ActionController::Base.new }
127
128
+ before { controller.extend(ViewRendering::EmptyTemplates) }
129
130
+ it 'supports manipulating view paths' do
131
+ controller.prepend_view_path 'app/views'
132
+ controller.append_view_path 'app/others'
133
+ expect(controller.view_paths.map(&:to_s)).to match_paths 'app/views', 'app/others'
134
+ end
135
136
+ def match_paths(*paths)
137
+ eq paths.map { |path| File.expand_path path }
138
139
140
141
0 commit comments