lib/generators/rspec/controller/controller_generator.rb in rspec-rails-2.13.0 vs lib/generators/rspec/controller/controller_generator.rb in rspec-rails-2.13.1
- old
+ new
@@ -16,10 +16,10 @@
File.join('spec/controllers', class_path, "#{file_name}_controller_spec.rb")
end
def generate_view_specs
return if actions.empty?
- return unless options[:view_specs]
+ return unless options[:view_specs] && options[:template_engine]
empty_directory File.join("spec", "views", file_path)
actions.each do |action|
@action = action