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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
230
Programming with Something
tomstuart
0
390
Representations count
tomstuart
2
460
Get off the tightrope
tomstuart
0
820
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
AIと共にエンジニアとPMの “二刀流”を実現する
naruogram
0
110
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
260
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
450
AI 開発合宿を通して得た学び
niftycorp
PRO
0
180
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
250
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
160
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
270
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
580
Feature Toggle は捨てやすく使おう
gennei
0
390
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
310
OTP を自動で入力する裏技
megabitsenmzq
0
130
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
6
1.1k
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
330
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
100
How to Ace a Technical Interview
jacobian
281
24k
The agentic SEO stack - context over prompts
schlessera
0
720
A designer walks into a library…
pauljervisheath
210
24k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
310
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Optimizing for Happiness
mojombo
378
71k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Automating Front-end Workflow
addyosmani
1370
200k
30 Presentation Tips
portentint
PRO
1
260
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
250
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]