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
340
Migrando a Microservicios
janogonzalez
1
280
Extracting services from a monolith
janogonzalez
3
250
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
440
Microservices in Practice
janogonzalez
7
640
Two programmers in one
janogonzalez
1
150
The Bipolar Programmer
janogonzalez
4
590
Ruby for your two internal programmers
janogonzalez
4
230
Ruby for Java minds
janogonzalez
4
1k
Other Decks in Programming
See All in Programming
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
200
JAWS Days 2025のインフラ
komakichi
1
410
Webフレームワークとともに利用するWeb components / JSConf.jp おかわり
spring_raining
1
170
AIエージェントを活用したアプリ開発手法の模索
kumamotone
1
630
iOSでQRコード生成奮闘記
ktcryomm
2
190
AWS CDKにおけるL2 Constructの仕組み / aws-cdk-l2-construct
gotok365
4
850
AIレビュー導入によるCIツールとの共存と最適化
kamo26sima
1
1.4k
ステートソーシング型イベント駆動の視点で捉えるCQRS+ES
shinnosuke0522
0
160
機能が複雑化しても 頼りになる FactoryBotの話
tamikof
1
280
Return of the Full-Stack Developer
simas
PRO
1
250
AI時代のプログラミング教育 / programming education in ai era
kishida
6
260
Lambdaの監視、できてますか?Datadogを用いてLambdaを見守ろう
nealle
2
920
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
429
65k
Practical Orchestrator
shlominoach
186
10k
Building Adaptive Systems
keathley
40
2.4k
It's Worth the Effort
3n
184
28k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
115
51k
Build The Right Thing And Hit Your Dates
maggiecrowley
34
2.6k
The Invisible Side of Design
smashingmag
299
50k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Why Our Code Smells
bkeepers
PRO
336
57k
Stop Working from a Prison Cell
hatefulcrawdad
268
20k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
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 ;)