# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This file contains hidden or 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
| require 'set' | |
| USED_CASSETTES = Set.new | |
| module CassetteReporter | |
| def insert_cassette(name, options = {}) | |
| USED_CASSETTES << VCR::Cassette.new(name, options).file | |
| super | |
| end | |
| end | |
| VCR.extend(CassetteReporter) |
This file contains hidden or 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
| ls * | xargs -i echo "openssl x509 -in {} -out ./cert/{} -outform PEM" > certificados.sh | |
| chmode +777 certificados.sh | |
| ./certificados.sh | |
| cat cert/*.crt > ./certificados.pem |
This file contains hidden or 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
| class Users::RegistrationsController < Devise::RegistrationsController | |
| # before_action :configure_sign_up_params, only: [:create] | |
| # before_action :configure_account_update_params, only: [:update] | |
| # GET /resource/sign_up | |
| # def new | |
| # super | |
| # end | |
| # POST /resource |
This list is based on aliases_spec.rb.
You can see also Module: RSpec::Matchers API.
| matcher | aliased to | description |
|---|---|---|
| a_truthy_value | be_truthy | a truthy value |
| a_falsey_value | be_falsey | a falsey value |
| be_falsy | be_falsey | be falsy |
| a_falsy_value | be_falsey | a falsy value |
This file contains hidden or 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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |