Class: Rspec::Generators::ObserverGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rspec/observer/observer_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_observer_specObject


6
7
8
9
# File 'lib/generators/rspec/observer/observer_generator.rb', line 6

def generate_observer_spec
  template 'observer_spec.rb',
           File.join('spec', 'models', class_path, "#{file_name}_observer_spec.rb")
end