Skip to content

Commit

Permalink
KBP-144 #time 20m implement docker development environment specs
Browse files Browse the repository at this point in the history
  • Loading branch information
İsmail Akbudak committed Nov 21, 2017
1 parent d59be28 commit ce012b8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/features/new_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
before(:all) do
drop_dummy_database
remove_project_directory
run_cybele
run_cybele('--skip-create-database')
setup_app_dependencies
end

Expand Down
21 changes: 20 additions & 1 deletion spec/features/new_not_default_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
drop_dummy_database
remove_project_directory
run_cybele('--database=sqlite3 --skip-create-database --skip-sidekiq --skip-simple-form --skip-show-for'\
' --skip-haml')
' --skip-haml --skip-docker')
setup_app_dependencies
end

Expand Down Expand Up @@ -195,4 +195,23 @@
it 'uses gitignore' do
git_ignore_test
end

it "don't use docker development environment" do
expect(File).not_to exist(file_project_path('docker-compose.yml'))
expect(File).not_to exist(file_project_path('Dockerfile'))
expect(File).not_to exist(file_project_path('bin/start-app.sh'))
expect(File).not_to exist(file_project_path('bin/start-sidekiq.sh'))

env_sample_file = content('env.sample')
expect(env_sample_file).not_to match('REDISTOGO_URL=redis://redis:6379/0')

env_local_file = content('.env.local')
expect(env_local_file).not_to match('REDISTOGO_URL=redis://redis:6379/0')

env_staging_file = content('.env.staging')
expect(env_staging_file).not_to match('REDISTOGO_URL=')

env_production_file = content('.env.production')
expect(env_production_file).not_to match('REDISTOGO_URL=')
end
end

0 comments on commit ce012b8

Please sign in to comment.