Skip to content

Instantly share code, notes, and snippets.

@Tcalura
Tcalura / config
Last active July 29, 2019 18:13
configuração do rspec em uma app rails
Adiciona ao Gemfile
gem 'rspec-rails'
gem 'spring-commands-rspec' #cria binario rspec e ajuda a executar mais rapido os testes por $ bin/rspec
gem 'factory_bot_rails'
gem 'faker' # gerador de lorem ipsum
Executa
$ bundle install
# e o gerador do binario para rspec comando da gem spring-commands-rspec
$ bundle exec spring binstub rspec
@Tcalura
Tcalura / postgresql_configuration_on_ubuntu_for_rails.md
Created July 26, 2019 17:22 — forked from p1nox/postgresql_configuration_on_ubuntu_for_rails.md
PostgreSQL configuration without password on Ubuntu for Rails

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev