Class: Rspec::Generators::FixtureManifestGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rspec/fixture_manifest_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_manifestObject



16
17
18
19
20
21
22
23
# File 'lib/generators/rspec/fixture_manifest_generator.rb', line 16

def generate_manifest
  create_file config.manifest_path, '{}' if !File.exist?(config.manifest_path) || options.force

  add_files

  say "Persisting manifest to #{config.manifest_path}"
  RSpec::RemoteFixtures::Manifest.persist_manifest!
end