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
300
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
A Little RSpec
The basics of RSpec, code at
https://github.com/janogonzalez/a-little-rspec
Jano González
September 26, 2011
More Decks by Jano González
See All by Jano González
Containerizing your monolith
janogonzalez
0
510
Migrando a Microservicios
janogonzalez
1
360
Extracting services from a monolith
janogonzalez
3
310
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
540
Microservices in Practice
janogonzalez
7
730
Two programmers in one
janogonzalez
1
240
The Bipolar Programmer
janogonzalez
4
660
Ruby for your two internal programmers
janogonzalez
4
310
Ruby for Java minds
janogonzalez
4
1.2k
Other Decks in Programming
See All in Programming
プロポーザルを書いてもらう
pvcresin
0
300
【QA Test Talk Vol.8】AI-DLC による Whole Team Approach の加速
pkshadeck
PRO
0
130
今さら聞けない .NET CLI
htkym
0
180
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
310
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
150
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
490
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
380
OpenSpecのproposalにbrainstormingを持たせてみた
tigertora7571
1
210
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
870
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
500
React本体のコードリーディング
high_g_engineer
1
140
Cloudflare is Agents
chimame
0
150
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
How to make the Groovebox
asonas
2
2.3k
The untapped power of vector embeddings
frankvandijk
2
1.8k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
290
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
790
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
Producing Creativity
orderedlist
PRO
348
40k
Speed Design
sergeychernyshev
33
2k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
400
The SEO identity crisis: Don't let AI make you average
varn
0
530
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
850
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
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 ;)