Class: Rspec::Generators::FormObjectGenerator

Inherits:
ActiveModel::Generators::TestGenerator show all
Defined in:
lib/active_model/form_object/generators/rspec/form_object_generator.rb

Instance Method Summary collapse

Methods inherited from ActiveModel::Generators::TestGenerator

#copy_files

Instance Method Details

#copy_shared_exampleObject



10
11
12
13
# File 'lib/active_model/form_object/generators/rspec/form_object_generator.rb', line 10

def copy_shared_example
  template "shared_example.rb",
    File.join(support_dir_path, "form_object.rb")
end