Method: Spree::DummyGenerator#test_dummy_config

Defined in:
lib/generators/spree/dummy/dummy_generator.rb

#test_dummy_configObject



53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/generators/spree/dummy/dummy_generator.rb', line 53

def test_dummy_config
  @lib_name = options[:lib_name]
  @database = options[:database]

  template "rails/database.yml", "#{dummy_path}/config/database.yml", force: true
  template "rails/storage.yml", "#{dummy_path}/config/storage/test.yml", force: true
  template "rails/boot.rb", "#{dummy_path}/config/boot.rb", force: true
  template "rails/application.rb.tt", "#{dummy_path}/config/application.rb", force: true
  template "rails/routes.rb", "#{dummy_path}/config/routes.rb", force: true
  template "rails/test.rb", "#{dummy_path}/config/environments/test.rb", force: true
  template "rails/script/rails", "#{dummy_path}/spec/dummy/script/rails", force: true
end