Skip to content

Instantly share code, notes, and snippets.

View luizfnunesmarques's full-sized avatar

Luiz Marques luizfnunesmarques

View GitHub Profile
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
#!/bin/bash
# ----------------------------------------------------------------------------
# Gerador e Validador de CPF em Shell Script (Bash)
#
# Uso: cpf [cpf]
# Ex.: cpf 552.056.731-09 # pode utilizar assim
# cpf 55205673109 # pode utilizar assim
# cpf # gera um CPF válido
#
# Autor: Marcos da B. M. Oliveira , http://www.terminalroot.com.br/