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