Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Welcome back to RSpec
Search
Tom Stuart
July 14, 2014
Programming
890
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Welcome back to RSpec
Tom Stuart
July 14, 2014
Transcript
28 slides
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]
More Decks by Tom Stuart
See All by Tom Stuart
Stop ignoring pattern matching!
tomstuart
0
300
Programming with Something
tomstuart
0
470
Representations count
tomstuart
2
510
Get off the tightrope
tomstuart
0
880
Automatic differentiation in Ruby
tomstuart
0
990
Hello, declarative world
tomstuart
1
790
Consider static typing
tomstuart
2
1.2k
A Lever for the Mind
tomstuart
2
920
Refactoring Ruby with Monads
tomstuart
20
3.9k
Other Decks in Programming
See All in Programming
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.1k
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
1.3k
[Kotlin Fest 2026] eBPF Tracing for Kotlin
takehaya
1
410
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
350
疎結合とは何か?ソフトウェア設計における結合バランスについて考える #phpcon_niigata
kajitack
2
430
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
360
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
170
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
SODA - FACT BOOK(JP)
sodainc
1
40k
Featured
See All Featured
My Coaching Mixtape
mlcsv
0
400
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
410
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
Navigating Team Friction
lara
192
16k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.5k
The Limits of Empathy - UXLibs8
cassininazir
2
800
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
350
So, you think you're a good person
axbom
PRO
2
2.3k
Site-Speed That Sticks
csswizardry
13
1.6k
Utilizing Notion as your number one productivity tool
mfonobong
4
710
Ruling the World: When Life Gets Gamed
codingconduct
0
450
Testing 201, or: Great Expectations
jmmastey
46
8.4k