Class: TestUnit::Generators::PolicyGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_policy_testObject


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

def create_policy_test
  template "policy_test.rb", File.join("test/policies", class_path, "#{file_name}_policy_test.rb")
end