Method: Retrospec::Puppet::Generators::FunctionGenerator#v4_spec_dir
- Defined in:
- lib/retrospec/plugins/v1/plugin/generators/function_generator.rb
#v4_spec_dir ⇒ Object
returns the path to the v4 spec directory if using using rspec test type the spec/functions is returned
163 164 165 166 167 168 169 |
# File 'lib/retrospec/plugins/v1/plugin/generators/function_generator.rb', line 163 def v4_spec_dir if context.test_type == 'ruby' File.join(module_path, 'spec', 'unit', 'puppet', 'functions') else File.join(module_path, 'spec', 'functions') end end |