Skip to content

Commit

Permalink
remove all views on destroy controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Naokimi committed Mar 6, 2021
1 parent 8803ce4 commit 2f8841d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/rspec/controller/controller_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def generate_controller_spec
end

def generate_view_specs
return if actions.empty?
return if actions.empty? && behavior == :invoke
return unless options[:view_specs] && options[:template_engine]

empty_directory File.join("spec", "views", file_path)
Expand Down

0 comments on commit 2f8841d

Please sign in to comment.