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
800
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
190
Programming with Something
tomstuart
0
350
Representations count
tomstuart
2
420
Get off the tightrope
tomstuart
0
720
Automatic differentiation in Ruby
tomstuart
0
850
Hello, declarative world
tomstuart
1
660
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
800
Refactoring Ruby with Monads
tomstuart
20
3.6k
Other Decks in Programming
See All in Programming
Azure AI Foundryではじめてのマルチエージェントワークフロー
seosoft
0
190
技術同人誌をMCP Serverにしてみた
74th
1
680
ニーリーにおけるプロダクトエンジニア
nealle
0
880
新メンバーも今日から大活躍!SREが支えるスケールし続ける組織のオンボーディング
honmarkhunt
5
8k
TypeScriptでDXを上げろ! Hono編
yusukebe
1
390
MDN Web Docs に日本語翻訳でコントリビュートしたくなる
ohmori_yusuke
1
130
#QiitaBash MCPのセキュリティ
ryosukedtomita
1
1.4k
GPUを計算資源として使おう!
primenumber
1
190
AIと”コードの評価関数”を共有する / Share the "code evaluation function" with AI
euglena1215
1
170
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
880
おやつのお供はお決まりですか?@WWDC25 Recap -Japan-\(region).swift
shingangan
0
140
AIプログラマーDevinは PHPerの夢を見るか?
shinyasaita
1
230
Featured
See All Featured
Writing Fast Ruby
sferik
628
62k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
970
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Facilitating Awesome Meetings
lara
54
6.5k
Making the Leap to Tech Lead
cromwellryan
134
9.4k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
The World Runs on Bad Software
bkeepers
PRO
69
11k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
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]