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
Tom Stuart
July 14, 2014
Programming
860
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
250
Programming with Something
tomstuart
0
410
Representations count
tomstuart
2
470
Get off the tightrope
tomstuart
0
830
Automatic differentiation in Ruby
tomstuart
0
920
Hello, declarative world
tomstuart
1
730
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
870
Refactoring Ruby with Monads
tomstuart
20
3.8k
Other Decks in Programming
See All in Programming
今さら聞けないCancellationToken
htkym
0
210
RTSPクライアントを自作してみた話
simotin13
0
390
TSKaigi 2026 TypeScriptバックエンドのオブザーバビリティ戦略 — Datadog × NestJSの実践
taiseiyamamotoan
1
210
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.2k
関係性から理解する"同一性"の型用語たち
pvcresin
2
620
Lessons from Spec-Driven Development
simas
PRO
0
110
Moments When Things Go Wrong
aurimas
3
130
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
2.5k
inferと仲良くなる10分間
ryokatsuse
1
290
net-httpのHTTP/2対応について
naruse
0
380
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
1
540
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
210
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
96
14k
The Curious Case for Waylosing
cassininazir
1
370
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
130
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
230
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Documentation Writing (for coders)
carmenintech
77
5.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Color Theory Basics | Prateek | Gurzu
gurzu
0
320
Joys of Absence: A Defence of Solitary Play
codingconduct
1
380
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]