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
790
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
180
Programming with Something
tomstuart
0
330
Representations count
tomstuart
2
410
Get off the tightrope
tomstuart
0
690
Automatic differentiation in Ruby
tomstuart
0
830
Hello, declarative world
tomstuart
1
640
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
780
Refactoring Ruby with Monads
tomstuart
20
3.5k
Other Decks in Programming
See All in Programming
Building Scalable Mobile Projects: Fast Builds, High Reusability and Clear Ownership
cyrilmottier
2
320
The Implementations of Advanced LR Parser Algorithm
junk0612
1
860
Lambda(Python)の リファクタリングが好きなんです
komakichi
3
220
Ruby on Railroad: The Power of Visualizing CFG
ydah
0
260
複雑なフォームの jotai 設計 / Designing jotai(state) for Complex Forms #layerx_frontend
izumin5210
5
1.3k
RubyKaigi Dev Meeting 2025
tenderlove
1
610
Laravel × Clean Architecture
bumptakayuki
PRO
0
120
Glue Studio Visual ETL実装時にハマったこと
kokitamura
0
100
設計の本質:コード、システム、そして組織へ / The Essence of Design: To Code, Systems, and Organizations
nrslib
10
3.4k
実践Webフロントパフォーマンスチューニング
cp20
40
9.1k
プロダクト横断分析に役立つ、事前集計しないサマリーテーブル設計
hanon52_
2
490
スモールスタートで始めるためのLambda×モノリス(Lambdalith)
akihisaikeda
2
300
Featured
See All Featured
Building Adaptive Systems
keathley
41
2.5k
How to train your dragon (web standard)
notwaldorf
91
6k
Building an army of robots
kneath
305
45k
Code Reviewing Like a Champion
maltzj
523
40k
A designer walks into a library…
pauljervisheath
205
24k
Automating Front-end Workflow
addyosmani
1370
200k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Into the Great Unknown - MozCon
thekraken
38
1.7k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
GraphQLの誤解/rethinking-graphql
sonatard
71
10k
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]