Skip to content

Instantly share code, notes, and snippets.

View jaferdaltro's full-sized avatar
🏠
Working from home

Jafer Daltro jaferdaltro

🏠
Working from home
  • Fortaleza, Ceará - Brazil
View GitHub Profile
{
"terminal.integrated.defaultProfile.osx": "zsh",
"workbench.iconTheme": "symbols",
"workbench.colorCustomizations": {
"activityBar.activeFocusBorder":"#ff0000",
},
"explorer.compactFolders": false,
"editor.minimap.enabled": false,
"security.workspace.trust.untrustedFiles": "open",
"vsicons.dontShowNewVersionMessage": true,
require_relative 'bank_account'
bank_account = BankAccount.new('1234', 0, 200, [])
bank_account.deposit(100, '1234')
puts
bank_account.withdraw(100, '1234')
bank_account.withdraw(100, '1234')
@jaferdaltro
jaferdaltro / alias_matchers.md
Created July 26, 2022 10:18 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

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
<% if clock.nil? %>
<%= link_to 'Iniciar Ponto', clock_in_path, method: :patch, class: 'btn btn-success' %>
<% elsif clock.end_at.nil? %>
<p class="card-text">Ponto iniciado ha <%= time_ago_in_words(clock.created_at) %></p>
<%= link_to 'Finalizar Ponto', clock_out_path, method: :patch, class: 'btn btn-warning' %>
<% else%>
<p class="card-text">Ponto finalizado ha <%= time_ago_in_words(clock.end_at) %></p>
<% end %>