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
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
安いハードウェアでVulkan
fadis
1
960
Reactive ❤️ Loom: A Forbidden Love Story
franz1981
2
230
今こそ押さえておきたい アマゾンウェブサービス(AWS)の データベースの基礎 おもクラ #6版
satoshi256kbyte
1
240
Rethinking API Platform Filters
vinceamstoutz
0
11k
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
350
PDI: Como Alavancar Sua Carreira e Seu Negócio
marcelgsantos
0
120
Getting more out of Maven
mlvandijk
0
110
PHP 7.4でもOpenTelemetryゼロコード計装がしたい! / PHPerKaigi 2026
arthur1
1
570
Kubernetes上でAgentを動かすための最新動向と押さえるべき概念まとめ
sotamaki0421
3
480
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
140
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
9
3.5k
10 Tips of AWS ~Gen AI on AWS~
licux
5
330
Featured
See All Featured
Designing for Performance
lara
611
70k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
240
ラッコキーワード サービス紹介資料
rakko
1
3M
Why Our Code Smells
bkeepers
PRO
340
58k
Side Projects
sachag
455
43k
How Software Deployment tools have changed in the past 20 years
geshan
0
33k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.2k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
110
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]