Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Ruby Conf Brasil 2022
Search
Matheus Sales
September 09, 2022
Technology
1
160
Ruby Conf Brasil 2022
Matheus Sales
September 09, 2022
Tweet
Share
Other Decks in Technology
See All in Technology
20251027_findyさん_音声エージェントLT
almondo_event
0
220
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
12
81k
Observability — Extending Into Incident Response
nari_ex
1
150
ゼロコード計装導入後のカスタム計装でさらに可観測性を高めよう
sansantech
PRO
1
250
SCONE - 動画配信の帯域を最適化する新プロトコル
kazuho
1
320
事業開発におけるDify活用事例
kentarofujii
5
1.4k
物体検出モデルでシイタケの収穫時期を自動判定してみた。 #devio2025
lamaglama39
0
280
Building a cloud native business on open source
lizrice
0
170
NLPコロキウム20251022_超効率化への挑戦: LLM 1bit量子化のロードマップ
yumaichikawa
2
410
知覚とデザイン
rinchoku
1
540
AI時代の開発を加速する組織づくり - ブログでは書けなかったリアル
hiro8ma
1
300
もう外には出ない。より快適なフルリモート環境を目指して
mottyzzz
13
9.9k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
161
23k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
140
34k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Optimising Largest Contentful Paint
csswizardry
37
3.5k
Practical Orchestrator
shlominoach
190
11k
Agile that works and the tools we love
rasmusluckow
331
21k
Optimizing for Happiness
mojombo
379
70k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Bash Introduction
62gerente
615
210k
Transcript
Matheus Sales Story Telling Tes ti ng: conte uma história
com seus testes
#rubyconf+2022 @mthsls28 •Matheus Sales •Desenvolvedor @thoughtbot #boost •Primeira conferência 😁
•Gosto de jogar al ti nha ⚽ 🏖 •Sou formado em engenharia civil 👷 Ilustração feita por: @layered_space
#rubyconf+2022 @mthsls28 h tt ps://br.pinterest.com/pin/701928291906345017/
#rubyconf+2022 @mthsls28 Startup
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28 DRY
Histórias x Testes
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28 “Os carros são como as lanchas, as motos
são como os jet skis e os personagens são como os objetos” Sales, Matheus - 2022
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28 🌶 🌶 🌶
[3]: Ruby
Eu [1] [2] com [3] [1]: adoro [2]: programar
[3]: Ruby
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28 Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nulla luctus, neque nec vehicula tris ti que, odio nisi malesuada nulla, et placerat ipsum sem non nunc. Fusce lacus purus, consequat vitae aliquam eget, cursus nec nisi. Duis tempor arcu eu interdum imperdiet. Title Text EYEBROW TEXT
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28 (+) duplicação (+) legibilidade (—) duplicação (—) legibilidade
#rubyconf+2022 @mthsls28
Começo / Meio / Fim
#rubyconf+2022 @mthsls28
#rubyconf+2022 @mthsls28
Resumo
#rubyconf+2022 @mthsls28 Shared Examples / Shared Contexts
#rubyconf+2022 @mthsls28 Shared Examples / Shared Contexts
#rubyconf+2022 @mthsls28 Conclusão
#rubyconf+2022 @mthsls28 Caracterize seus objetos Evite o uso desnecessário de
recursos do RSpec Separação clara entre as fases do teste Não se preocupe em repetir código nos testes
#rubyconf+2022 @mthsls28 Recomendaçōes: Let’s not The self contained test
Write code to be read Write cleaner, self-documented tests by de fi ning methods in RSpec
#rubyconf+2022 @mthsls28 @mths28 Estamos contratando! @matsales28 Matheus Sales