-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code refactor for test specs and change sidekiq_redis environment key
- Loading branch information
İsmail Akbudak
committed
Dec 21, 2018
1 parent
6b10ade
commit e690b25
Showing
34 changed files
with
597 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
spec/features/new_not_default_no_skip_docker_project_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe 'Create new project without default configuration and no-skip docker' do | ||
before(:all) do | ||
remove_project_directory | ||
run_cybele(cybele_not_default_parameters(no_skips: %w[docker])) | ||
setup_app_dependencies | ||
end | ||
|
||
it_behaves_like 'uses docker development environment without sidekiq' | ||
|
||
it 'match readme' do | ||
gemfile_file = content('README.md') | ||
expect(gemfile_file).to match(file_content('README_ONLY_NO_SKIP_DOCKER.md')) | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
spec/features/new_not_default_no_skip_sidekiq_project_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
RSpec.describe 'Create new project without default configuration and no-skip sidekiq' do | ||
before(:all) do | ||
remove_project_directory | ||
run_cybele(cybele_not_default_parameters(no_skips: %w[sidekiq])) | ||
setup_app_dependencies | ||
end | ||
|
||
it_behaves_like 'uses sidekiq' | ||
|
||
it 'match readme' do | ||
gemfile_file = content('README.md') | ||
expect(gemfile_file).to match(file_content('README_ONLY_NO_SKIP_SIDEKIQ.md')) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Dummy_app | ||
|
||
# TODOs | ||
- Change email sender domain address and basic_auth info in `config/settings.yml` | ||
- Change email sender domain address in `config/initializers/devise.rb` | ||
- Create `.pronto.yml` file from `example.pronto.yml` file | ||
|
||
# Infos | ||
- Edit secret keys | ||
➜ ✗ EDITOR=vi bin/rails credentials:edit | ||
|
||
|
||
# Docker development | ||
- run following commands on terminal | ||
➜ ✗ docker-compose build | ||
➜ ✗ docker-compose run app bundle install | ||
➜ ✗ docker-compose run app bundle exec rails db:create db:migrate db:seed | ||
➜ ✗ docker-compose up | ||
- open in your browser localhost:3000 or lvh.me:3000 | ||
- If you want to access rails console run this command before | ||
➜ ✗ docker-compose run app bundle install --binstubs | ||
➜ ✗ docker-compose run app bundle exec rails c | ||
|
||
# Local development | ||
|
||
- Change SIDEKIG_REDIS_URL and POSTGRESQL_HOST environment in `.env.local` file | ||
|
||
- run following commands on terminal | ||
➜ ✗ bundle exec rails server | ||
- open in your browser localhost:3000 or lvh.me:3000 | ||
|
||
➜ ✗ redis-server | ||
➜ ✗ bundle exec rake sidekiq:start | ||
|
||
# Development | ||
➜ ✗ pronto run | ||
➜ ✗ pronto run -r haml | ||
- On feature branch | ||
➜ ✗ pronto run -c origin/develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Dummy_app | ||
|
||
# TODOs | ||
- Change email sender domain address and basic_auth info in `config/settings.yml` | ||
- Change email sender domain address in `config/initializers/devise.rb` | ||
- Create `.pronto.yml` file from `example.pronto.yml` file | ||
|
||
# Infos | ||
- Edit secret keys | ||
➜ ✗ EDITOR=vi bin/rails credentials:edit | ||
|
||
|
||
# Docker development | ||
- run following commands on terminal | ||
➜ ✗ docker-compose build | ||
➜ ✗ docker-compose run app bundle install | ||
➜ ✗ docker-compose run app bundle exec rails db:create db:migrate db:seed | ||
➜ ✗ docker-compose up | ||
- open in your browser localhost:3000 or lvh.me:3000 | ||
- If you want to access rails console run this command before | ||
➜ ✗ docker-compose run app bundle install --binstubs | ||
➜ ✗ docker-compose run app bundle exec rails c | ||
|
||
# Local development | ||
|
||
- Change POSTGRESQL_HOST environment in `.env.local` file | ||
|
||
- run following commands on terminal | ||
➜ ✗ bundle exec rails server | ||
- open in your browser localhost:3000 or lvh.me:3000 | ||
|
||
# Development | ||
➜ ✗ pronto run | ||
➜ ✗ pronto run -r haml | ||
- On feature branch | ||
➜ ✗ pronto run -c origin/develop |
Oops, something went wrong.