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
350
Migrando a Microservicios
janogonzalez
1
290
Extracting services from a monolith
janogonzalez
3
250
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
450
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
240
Ruby for Java minds
janogonzalez
4
1k
Other Decks in Programming
See All in Programming
AWS で実現する安全な AI エージェントの作り方 〜 Bedrock Engineer の実装例を添えて 〜 / how-to-build-secure-ai-agents
gawa
7
490
Coding Experience Cpp vs Csharp - meetup app osaka@9
harukasao
0
650
PHPバージョンアップから始めるOSSコントリビュート / how2oss-contribute
dmnlk
1
390
Defying Front-End Inertia: Inertia.js on Rails
skryukov
0
420
趣味全開のAITuber開発
kokushin
0
180
AIコードエディタの基盤となるLLMのFlutter性能評価
alquist4121
0
190
ノーコードツールの裏側につきまとう「20分岐」との戦い
oguemon
0
200
remix + cloudflare workers (DO) docker上でいい感じに開発する
yoshidatomoaki
0
120
PHPer's Guide to Daemon Crafting Taming and Summoning
uzulla
2
1.2k
gen_statem - OTP's Unsung Hero
whatyouhide
1
190
AI時代のプログラミング教育 / programming education in ai era
kishida
23
21k
SQL Server ベクトル検索
odashinsuke
0
150
Featured
See All Featured
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
BBQ
matthewcrist
88
9.6k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
GraphQLとの向き合い方2022年版
quramy
45
14k
Being A Developer After 40
akosma
90
590k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
135
33k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
22
2.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
500
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Music & Morning Musume
bryan
46
6.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 ;)