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
Welcome back to RSpec
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Tom Stuart
July 14, 2014
Programming
850
0
Share
Welcome back to RSpec
Tom Stuart
July 14, 2014
More Decks by Tom Stuart
See All by Tom Stuart
Stop ignoring pattern matching!
tomstuart
0
240
Programming with Something
tomstuart
0
400
Representations count
tomstuart
2
460
Get off the tightrope
tomstuart
0
830
Automatic differentiation in Ruby
tomstuart
0
910
Hello, declarative world
tomstuart
1
720
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
850
Refactoring Ruby with Monads
tomstuart
20
3.8k
Other Decks in Programming
See All in Programming
Claude Code × Gemini × Ebitengine ゲーム制作素人WebエンジニアがGoでゲームを作った話
webzawa
0
130
PHP で mp3 プレイヤーを実装しよう
m3m0r7
PRO
0
280
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
10 Tips of AWS ~Gen AI on AWS~
licux
5
400
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
2
360
LM Linkで(非力な!)ノートPCでローカルLLM
seosoft
0
500
おれのAgentic Coding 2026/03
tsukasagr
1
150
How Swift's Type System Guides AI Agents
koher
0
260
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
930
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
250
一度始めたらやめられない開発効率向上術 / Findy あなたのdotfilesを教えて!
k0kubun
4
3k
年間50登壇、単著出版、雑誌寄稿、Podcast出演、YouTube、CM、カンファレンス主催……全部やってみたので面白さ等を比較してみよう / I’ve tried them all, so let’s compare how interesting they are.
nrslib
4
780
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
290
Color Theory Basics | Prateek | Gurzu
gurzu
0
290
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
99
So, you think you're a good person
axbom
PRO
2
2k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
140
Docker and Python
trallard
47
3.8k
Ethics towards AI in product and experience design
skipperchong
2
260
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
190
Transcript
RSPEC TO WELCOME BACK @tomstuart / LRUG / 2014-07-14
a testing library for Ruby RSpec
August 2005 RSpec 0.1 May 2007 RSpec 1.0 October 2010
RSpec 2.0 June 2014 RSpec 3.0
FYI:
None
None
• it started as an experiment, now it’s become mature
• it used to be all over the place, now it’s much more focused • it used to be adventurous, now it’s more conservative • now’s a great time to [re]try it!
RSpec 2: more modular
rspec
rspec-core
“provides the structure for RSpec code examples”
examples and example groups
spec runner
metadata and filtering
rspec-expectations
“Provides a simple, readable API to express expected outcomes of
a code example”
rspec-mocks
“RSpec’s ‘test double’ framework, with support for stubbing and mocking”
stubs
mocks
rspec-core + rspec-expectations + rspec-mocks =
RSpec 3: cleaner, smarter
spring cleaning
no more monkey patching
verifying doubles
composable matchers
• mature • simpler, cleaner, more focused • world-class components
• use the bits you like, ignore the bits you don’t like, bring your own other bits • conscientious, friendly, helpful maintainers
thanks! @tomstuart /
[email protected]