Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matteo La Cognata [fabbricadigitale] committed Aug 4, 2018
1 parent 3b4741f commit dbcb85f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/factories/countries.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FactoryBot.define do
factory :country do
alpha3 'ITA'
name { "Italy" }
alpha3 { "ITA" }
end
end
4 changes: 3 additions & 1 deletion spec/factories/users.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FactoryBot.define do
factory :user do
username 'example'
username { 'example' }
email { 'example@domain.com' }
password { '12345678' }
end
end
5 changes: 5 additions & 0 deletions template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ def commit(msg)
gsub_file 'config/environments/development.rb', 'config.action_mailer.raise_delivery_errors = false', '# config.action_mailer.raise_delivery_errors = false'
gsub_file 'config/environments/development.rb', 'config.action_mailer.perform_caching = false', '# config.action_mailer.perform_caching = false'

# config/environments/test.rb
gsub_file 'config/environments/test.rb', 'config.active_storage.service = :test', '# config.active_storage.service = :test'
gsub_file 'config/environments/test.rb', 'config.action_mailer.perform_caching = false', '# config.action_mailer.perform_caching = false'
gsub_file 'config/environments/test.rb', 'config.action_mailer.delivery_method = :test', '# config.action_mailer.delivery_method = :test'

# config/environments/production.rb
gsub_file 'config/environments/production.rb', '# config.cache_store = :mem_cache_store', "config.cache_store = :dalli_store, 'localhost:11211', { :pool_size => ENV.fetch('WEB_CONCURRENCY') || 3 }"
gsub_file 'config/environments/production.rb', 'config.active_storage.service = :local', '# config.active_storage.service = :local'
Expand Down

0 comments on commit dbcb85f

Please sign in to comment.