Skip to content

Commit 2f8841d

Browse files
committed
remove all views on destroy controller
1 parent 8803ce4 commit 2f8841d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/rspec/controller/controller_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def generate_controller_spec
2727
end
2828

2929
def generate_view_specs
30-
return if actions.empty?
30+
return if actions.empty? && behavior == :invoke
3131
return unless options[:view_specs] && options[:template_engine]
3232

3333
empty_directory File.join("spec", "views", file_path)

0 commit comments

Comments
 (0)