Class: Rspec::Generators::FixtureManifestGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rspec::Generators::FixtureManifestGenerator
- Defined in:
- lib/generators/rspec/fixture_manifest_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_manifest ⇒ Object
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) || .force add_files say "Persisting manifest to #{config.manifest_path}" RSpec::RemoteFixtures::Manifest.persist_manifest! end |