Class: Pundit::Generators::PolicyGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Pundit::Generators::PolicyGenerator
- Defined in:
- lib/generators/test_unit_pundit/policy/policy_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_policy_test_file ⇒ Object
4 5 6 |
# File 'lib/generators/test_unit_pundit/policy/policy_generator.rb', line 4 def create_policy_test_file template File.join(File.dirname(__FILE__), 'templates/policy_test.rb'), File.join('test/policies', class_path, "#{file_name}_policy_test.rb") end |