Method: Cog::SpecHelpers#generator

Defined in:
lib/cog/spec_helpers.rb

#generator(name) ⇒ String

Returns path to the generator with the given name.

Parameters:

  • name (String)

    active fixture generator identifier

Returns:

  • (String)

    path to the generator with the given name



68
69
70
# File 'lib/cog/spec_helpers.rb', line 68

def generator(name)
  File.expand_path File.join(active_fixture_dir, 'cog', 'generators', "#{name}.rb")
end