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
0
850
Welcome back to RSpec
Tom Stuart
July 14, 2014
Tweet
Share
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
450
Get off the tightrope
tomstuart
0
810
Automatic differentiation in Ruby
tomstuart
0
900
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
ふつうのRubyist、ちいさなデバイス、大きな一年 / Ordinary Rubyists, Tiny Devices, Big Year
chobishiba
1
480
モックわからないマン卒業記 ~振る舞いを起点に見直した、フロントエンドテストにおけるモックの使いどころ~
tasukuwatanabe
3
400
Claude Code Skill入門
mayahoney
0
400
Ruby and LLM Ecosystem 2nd
koic
1
1.1k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
660
PHPのバージョンアップ時にも役立ったAST(2026年版)
matsuo_atsushi
0
160
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
100
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
300
CSC307 Lecture 15
javiergs
PRO
0
260
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
140
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
700
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
220
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
93
Test your architecture with Archunit
thirion
1
2.2k
How GitHub (no longer) Works
holman
316
150k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
BBQ
matthewcrist
89
10k
Design in an AI World
tapps
0
170
We Are The Robots
honzajavorek
0
200
Scaling GitHub
holman
464
140k
SEO for Brand Visibility & Recognition
aleyda
0
4.4k
Chasing Engaging Ingredients in Design
codingconduct
0
140
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Making Projects Easy
brettharned
120
6.6k
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]