Skip to content

Commit

Permalink
Fixed rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
Jane-Terziev committed Jan 21, 2024
1 parent 92e53f4 commit f766de1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/dry_module_generator/module/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,14 @@ def create_tests
"spec/ui/validation_test.rb",
File.join("#{module_name}/spec/ui/update_#{class_name.downcase}_validator_spec.rb")
)
template("spec/app/service_test.rb", File.join("#{module_name}/spec/app/#{class_name.downcase}_service_spec.rb"))
template("spec/ui/controller_test.rb", File.join("#{module_name}/spec/ui/#{class_name.pluralize.downcase}_controller_spec.rb"))
template(
"spec/app/service_test.rb",
File.join("#{module_name}/spec/app/#{class_name.downcase}_service_spec.rb")
)
template(
"spec/ui/controller_test.rb",
File.join("#{module_name}/spec/ui/#{class_name.pluralize.downcase}_controller_spec.rb")
)
end

private
Expand Down

0 comments on commit f766de1

Please sign in to comment.