Skip to content

Instantly share code, notes, and snippets.

@SegundoRP
SegundoRP / request.rb
Created November 26, 2024 04:49 — forked from MatheusRich/request.rb
Request Specs vs. System Specs Comparison
require "rails_helper"
RSpec.describe "User management", type: :request do
# Runs in about 0.2 seconds (excluding file load time)
it "lists existing users" do
User.create!(name: "John", age: 30)
get users_path
expect(page).to have_table "Users" do |table|

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

Keybase proof

I hereby claim:

  • I am segundorp on github.
  • I am secondr (https://keybase.io/secondr) on keybase.
  • I have a public key ASCxJZzhjDBWTMUJhefTy1fBNMNerhXu2RsvcFLkUf5C5Ao

To claim this, I am signing this object:

@SegundoRP
SegundoRP / curl.md
Created July 15, 2024 05:54 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.