Class: Rspec::PolicyGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Rspec::PolicyGenerator
- Defined in:
- lib/generators/policy_generator/rspec/rspec_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_policy_spec ⇒ Object
7 8 9 |
# File 'lib/generators/policy_generator/rspec/rspec_generator.rb', line 7 def create_policy_spec template "policy_spec.rb", File.join("spec/policies", class_path, "#{file_name}_policy_spec.rb") end |