spec/generators/scaffold_generator_spec.rb in gris-0.1.6 vs spec/generators/scaffold_generator_spec.rb in gris-0.1.7
- old
+ new
@@ -33,25 +33,25 @@
it 'creates a scaffold app in a directory of my choosing' do
expect(Dir).to exist(app_path)
end
- it 'creates a .env file with with a development database name' do
- expect(File).to exist("#{app_path}/.env")
- env_file = File.read("#{app_path}/.env")
+ it 'creates a .env.example file with with a development database name' do
+ expect(File).to exist("#{app_path}/.env.example")
+ env_file = File.read("#{app_path}/.env.example")
expect(env_file).to match(/#{app_name}_development/)
end
it 'creates a Procfile file with puma ' do
expect(File).to exist("#{app_path}/Procfile")
env_file = File.read("#{app_path}/Procfile")
expect(env_file).to match(/web: bundle exec puma/)
end
- it 'creates a .env.test file with a test database name' do
- expect(File).to exist("#{app_path}/.env.test")
- env_test_file = File.read("#{app_path}/.env.test")
- expect(env_test_file).to match(/#{app_name}_test/)
+ it 'creates a .env.example file with a development database name' do
+ expect(File).to exist("#{app_path}/.env.example")
+ env_test_file = File.read("#{app_path}/.env.example")
+ expect(env_test_file).to match(/#{app_name}_development/)
end
it 'selects postgresql as the default database adapter' do
database_config_file = File.read("#{app_path}/config/database.yml")
expect(database_config_file).to match(/adapter: postgresql/)