Class: Rspec::Generators::PolicyGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/rspec/policy_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_policy_specObject


8
9
10
# File 'lib/generators/rspec/policy_generator.rb', line 8

def create_policy_spec
  template "policy_spec.rb", File.join("spec/policies", class_path, "#{file_name}_policy_spec.rb")
end