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
270
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
230
Migrando a Microservicios
janogonzalez
1
260
Extracting services from a monolith
janogonzalez
3
240
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
400
Microservices in Practice
janogonzalez
7
610
Two programmers in one
janogonzalez
1
130
The Bipolar Programmer
janogonzalez
4
560
Ruby for your two internal programmers
janogonzalez
4
210
Ruby for Java minds
janogonzalez
4
990
Other Decks in Programming
See All in Programming
HMSコンペ 11th Solution (team : kansai-kaggler)
t88
1
680
OpenAI/Gemini APIを使って EPUBを翻訳するCLIツールをつくってみた
tomiyan
0
790
Android開発者のための Kotlin Multiplatform入門
ntaro
0
190
企業向け生成AIアプリの 開発から得られた知見
takaakikakei
0
310
CSC307 Lecture 06
javiergs
PRO
0
360
How to use Macrobenchmark
veronikapj
0
160
AHC035解説
terryu16
0
710
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
6
1.4k
CSC307 Lecture 10
javiergs
PRO
0
310
君たちはどうコードをレビューする (される) か / 大吉祥寺.pm
utgwkk
15
8.5k
Trial
cairolibrary720
1
130
Microservices rules (July 2024) : what good looks like
cer
PRO
0
1.6k
Featured
See All Featured
Practical Orchestrator
shlominoach
185
10k
Adopting Sorbet at Scale
ufuk
71
8.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Raft: Consensus for Rubyists
vanstee
134
6.5k
Why Our Code Smells
bkeepers
PRO
332
56k
Clear Off the Table
cherdarchuk
89
320k
Designing for Performance
lara
604
67k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
34
1.9k
Mobile First: as difficult as doing things right
swwweet
219
8.8k
Art, The Web, and Tiny UX
lynnandtonic
291
20k
Docker and Python
trallard
37
2.9k
Design by the Numbers
sachag
277
18k
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 ;)