Skip to content

Commit ce012b8

Browse files
author
İsmail Akbudak
committed
KBP-144 #time 20m implement docker development environment specs
1 parent d59be28 commit ce012b8

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

spec/features/new_default_project_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
before(:all) do
77
drop_dummy_database
88
remove_project_directory
9-
run_cybele
9+
run_cybele('--skip-create-database')
1010
setup_app_dependencies
1111
end
1212

spec/features/new_not_default_project_spec.rb

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
drop_dummy_database
88
remove_project_directory
99
run_cybele('--database=sqlite3 --skip-create-database --skip-sidekiq --skip-simple-form --skip-show-for'\
10-
' --skip-haml')
10+
' --skip-haml --skip-docker')
1111
setup_app_dependencies
1212
end
1313

@@ -195,4 +195,23 @@
195195
it 'uses gitignore' do
196196
git_ignore_test
197197
end
198+
199+
it "don't use docker development environment" do
200+
expect(File).not_to exist(file_project_path('docker-compose.yml'))
201+
expect(File).not_to exist(file_project_path('Dockerfile'))
202+
expect(File).not_to exist(file_project_path('bin/start-app.sh'))
203+
expect(File).not_to exist(file_project_path('bin/start-sidekiq.sh'))
204+
205+
env_sample_file = content('env.sample')
206+
expect(env_sample_file).not_to match('REDISTOGO_URL=redis://redis:6379/0')
207+
208+
env_local_file = content('.env.local')
209+
expect(env_local_file).not_to match('REDISTOGO_URL=redis://redis:6379/0')
210+
211+
env_staging_file = content('.env.staging')
212+
expect(env_staging_file).not_to match('REDISTOGO_URL=')
213+
214+
env_production_file = content('.env.production')
215+
expect(env_production_file).not_to match('REDISTOGO_URL=')
216+
end
198217
end

0 commit comments

Comments
 (0)