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
280
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
390
Migrando a Microservicios
janogonzalez
1
310
Extracting services from a monolith
janogonzalez
3
250
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
480
Microservices in Practice
janogonzalez
7
670
Two programmers in one
janogonzalez
1
180
The Bipolar Programmer
janogonzalez
4
610
Ruby for your two internal programmers
janogonzalez
4
260
Ruby for Java minds
janogonzalez
4
1.1k
Other Decks in Programming
See All in Programming
TDD 実践ミニトーク
contour_gara
1
270
Langfuseと歩む生成AI活用推進
licux
3
320
Updates on MLS on Ruby (and maybe more)
sylph01
1
170
OSS開発者という働き方
andpad
5
1.6k
モバイルアプリからWebへの横展開を加速した話_Claude_Code_実践術.pdf
kazuyasakamoto
0
290
複雑なドメインに挑む.pdf
yukisakai1225
4
890
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
130
🔨 小さなビルドシステムを作る
momeemt
3
630
MCPとデザインシステムに立脚したデザインと実装の融合
yukukotani
1
970
KessokuでDIでもgoroutineを活用する / Go Connect #6
mazrean
0
130
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
290
「手軽で便利」に潜む罠。 Popover API を WCAG 2.2の視点で安全に使うには
taitotnk
0
190
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
96
6.2k
For a Future-Friendly Web
brad_frost
179
9.9k
Scaling GitHub
holman
463
140k
Being A Developer After 40
akosma
90
590k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Git: the NoSQL Database
bkeepers
PRO
431
66k
Designing for Performance
lara
610
69k
The Invisible Side of Design
smashingmag
301
51k
How to Ace a Technical Interview
jacobian
279
23k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Into the Great Unknown - MozCon
thekraken
40
2k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
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 ;)