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
340
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.6k
Other Decks in Programming
See All in Programming
Ruby で作る RISC-V CPU エミュレーター / RISC-V CPU emulator made with Ruby
hayaokimura
5
1.2k
AIコーディングの本質は“コード“ではなく“構造“だった / The essence of AI coding is not “code” but "structure
seike460
2
580
OpenTelemetry + LLM = OpenLLMetry!?
yunosukey
2
200
Digging into the Matrix: Practicing Code Archaeology
arthurdoler
PRO
0
120
AI時代のリアーキテクチャ戦略 / Re-architecture Strategy in the AI Era
dachi023
0
160
開発者フレンドリーで顧客も満足?Platformの秘密
algoartis
0
250
LRパーサーはいいぞ
ydah
7
1.5k
事業KPIを基に価値の解像度を上げる
nealle
0
160
ソフトウェア品質特性、意識してますか?AIの真の力を引き出す活用事例 / ai-and-software-quality
minodriven
17
5.1k
クラシルリワードにおける iOSアプリ開発の取り組み
funzin
1
390
「MCPを使ってる人」が より詳しくなるための解説
yamaguchidesu
0
260
“技術カンファレンスで何か変わる?” ──RubyKaigi後の自分とチームを振り返る
ssagara00
0
170
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
180
53k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
24
2.8k
Scaling GitHub
holman
459
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
YesSQL, Process and Tooling at Scale
rocio
172
14k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.7k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
5
590
A designer walks into a library…
pauljervisheath
205
24k
Documentation Writing (for coders)
carmenintech
71
4.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
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]