Sha256: 0746505f1210dc5e5d09a915c54a1aedf969ad453c8a2e7a01d7e62413989a3c

Contents?: true

Size: 903 Bytes

Versions: 4

Compression:

Stored size: 903 Bytes

Contents

helper_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "app", "helpers", "controllers", "helper.rb.template") %>
  output_path: <%= File.join("app", "helpers", "controllers", "#{@name_plural}_controller_helper.rb") %>
<% if app_config.mack.testing_framework == "test_case" -%>
helper_test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "test_case.rb.template") %>
  output_path: <%= File.join("test", "helpers", "controllers", "#{@name_plural}_controller_helper_test.rb") %>
<% elsif app_config.mack.testing_framework == "rspec" -%>
helper_test_template:
  type: file
  template_path: <%= File.join(templates_directory_path, "test", "helpers", "controllers", "rspec.rb.template") %>
  output_path: <%= File.join("test", "helpers", "controllers", "#{@name_plural}_controller_helper_spec.rb") %>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mack-0.7.0 lib/mack/generators/controller_helper_generator/manifest.yml
mack-0.7.0.1 lib/mack/generators/controller_helper_generator/manifest.yml
mack-0.7.1.1 lib/mack/generators/controller_helper_generator/manifest.yml
mack-0.7.1 lib/mack/generators/controller_helper_generator/manifest.yml