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
A Little RSpec
Search
Jano González
September 26, 2011
Programming
2
290
A Little RSpec
The basics of RSpec, code at
https://github.com/janogonzalez/a-little-rspec
Jano González
September 26, 2011
Tweet
Share
More Decks by Jano González
See All by Jano González
Containerizing your monolith
janogonzalez
0
460
Migrando a Microservicios
janogonzalez
1
320
Extracting services from a monolith
janogonzalez
3
270
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
490
Microservices in Practice
janogonzalez
7
700
Two programmers in one
janogonzalez
1
200
The Bipolar Programmer
janogonzalez
4
630
Ruby for your two internal programmers
janogonzalez
4
280
Ruby for Java minds
janogonzalez
4
1.1k
Other Decks in Programming
See All in Programming
Graviton と Nitro と私
maroon1st
0
160
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
210
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.1k
Basic Architectures
denyspoltorak
0
190
Python札幌 LT資料
t3tra
7
1.1k
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
660
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
4
730
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
組み合わせ爆発にのまれない - 責務分割 x テスト
halhorn
1
180
Implementation Patterns
denyspoltorak
0
150
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
140
Grafana:建立系統全知視角的捷徑
blueswen
0
280
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Why Our Code Smells
bkeepers
PRO
340
58k
Odyssey Design
rkendrick25
PRO
0
460
Thoughts on Productivity
jonyablonski
74
5k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.8k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
130
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
140
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
210
Bash Introduction
62gerente
615
210k
Transcript
Jano González Developer A Little RSpec
code: https://github.com/janogonzalez/a-little-rspec
From testing to describing code
Describing Code
Describing Code
Describing Code • describe: The thing to describe • it:
The expected behavior • should/should_not: The assertion
DRYing
DRYing
DRYing • before: Preparing the test case • after: Clean
up • around: Mix before & after
A little more context
A little more context
A little more context • context
More DRYing
More DRYing
More DRYing • let • let!
More DRYing
More DRYing • implicit subject
More DRYing
More DRYing • implicit subject • it • its
More DRYing
More DRYing • explicit subject
More info
More info • @dchelimsky • The RSpec Book • @janogonzalez
;) • http://gemaroja.com ;)