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
0
690
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
82
Programming with Something
tomstuart
0
240
Representations count
tomstuart
2
310
Get off the tightrope
tomstuart
0
480
Automatic differentiation in Ruby
tomstuart
0
730
Hello, declarative world
tomstuart
1
540
Consider static typing
tomstuart
2
970
A Lever for the Mind
tomstuart
2
670
Refactoring Ruby with Monads
tomstuart
20
3.3k
Other Decks in Programming
See All in Programming
チーム立ち上げにAWSを活用したらClaudeさんに褒められた話
mkdev10
3
230
TypeScriptコードの漸進的改善 / Progressive Improvement of TypeScript Code
medley
1
410
Balkan Ruby 2024 — How and why to run SQLite on Rails in production
fractaledmind
0
110
slow types ってなんだろう?
karad
0
210
Namespace, What and Why
tagomoris
3
620
仕様と実装で学ぶOpenTelemetry
drumato
2
320
Documentation testsの恩恵 / Documentation testing benefits
ssssota
1
540
大規模UIKitベースアプリへのTCAの段階的導入/gradual-adoption-of-tca-in-a-large-scale-uikit-based-app
takehilo
2
220
Try creating your own orderedmap
kazamori
1
280
哲学史とモデリング
tanakahisateru
2
380
WebGLで始める コンピュータグラフィックス入門
heller77
0
370
2024 コーディング研修
ckazu
2
630
Featured
See All Featured
It's Worth the Effort
3n
180
27k
jQuery: Nuts, Bolts and Bling
dougneiner
60
7.2k
How to Ace a Technical Interview
jacobian
273
22k
The Cost Of JavaScript in 2023
addyosmani
21
4k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
The Invisible Side of Design
smashingmag
294
49k
The Pragmatic Product Professional
lauravandoore
26
5.9k
What's new in Ruby 2.0
geeforr
338
31k
Designing on Purpose - Digital PM Summit 2013
jponch
111
6.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
15
1.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
261
12k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
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]