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
430
Migrando a Microservicios
janogonzalez
1
310
Extracting services from a monolith
janogonzalez
3
260
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
480
Microservices in Practice
janogonzalez
7
680
Two programmers in one
janogonzalez
1
190
The Bipolar Programmer
janogonzalez
4
620
Ruby for your two internal programmers
janogonzalez
4
270
Ruby for Java minds
janogonzalez
4
1.1k
Other Decks in Programming
See All in Programming
Vueで学ぶデータ構造入門 リンクリストとキューでリアクティビティを捉える / Vue Data Structures: Linked Lists and Queues for Reactivity
konkarin
1
150
AIを駆使して新しい技術を効率的に理解する方法
nogu66
0
570
Blazing Fast UI Development with Compose Hot Reload (droidcon London 2025)
zsmb
0
500
オンデバイスAIとXcode
ryodeveloper
0
440
組織もソフトウェアも難しく考えない、もっとシンプルな考え方で設計する #phpconfuk
o0h
PRO
10
4k
AI POSにおけるLLM Observability基盤の導入 ― サイバーエージェントDXインターン成果報告
hekuchan
0
470
What's New in Web AI?
christianliebel
PRO
0
120
チーム開発の “地ならし"
konifar
3
1.1k
Nitro v3
kazupon
2
240
Vue 3.6 時代のリアクティビティ最前線 〜Vapor/alien-signals の実践とパフォーマンス最適化〜
hiranuma
2
430
Inside of Swift Export
giginet
PRO
1
530
Blazing Fast UI Development with Compose Hot Reload (Bangladesh KUG, October 2025)
zsmb
2
500
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
Designing for Performance
lara
610
69k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
116
20k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
Navigating Team Friction
lara
190
15k
Done Done
chrislema
186
16k
Statistics for Hackers
jakevdp
799
220k
Docker and Python
trallard
46
3.6k
Large-scale JavaScript Application Architecture
addyosmani
514
110k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.5k
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 ;)