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
さぁV100、メモリをお食べ・・・
nilpe
0
120
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
7
2.4k
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
0
230
Swiftのレキシカルスコープ管理
kntkymt
0
200
自動レビューエンジンの実装と運用 ~レビューのない世界へ~
kurukuru1999
2
300
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
290
Spec-Driven Development with AI-Agents: From High-Level Requirements to Working Software
antonarhipov
2
400
1人1案件のプロダクトエンジニア時代に、"プロセス監督"としてチャレンジしたこと
non0113
0
360
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
500
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
250
Talking to terminals (and how they talk back) (KotlinConf 2026)
jakewharton
PRO
1
160
AIエージェントの隔離技術の徹底比較
kawayu
0
450
Featured
See All Featured
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
180
So, you think you're a good person
axbom
PRO
2
2k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
200
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
470
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
130
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]