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
770
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
160
Programming with Something
tomstuart
0
310
Representations count
tomstuart
2
390
Get off the tightrope
tomstuart
0
640
Automatic differentiation in Ruby
tomstuart
0
810
Hello, declarative world
tomstuart
1
620
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
760
Refactoring Ruby with Monads
tomstuart
20
3.5k
Other Decks in Programming
See All in Programming
1年目の私に伝えたい!テストコードを怖がらなくなるためのヒント/Tips for not being afraid of test code
push_gawa
1
480
sappoRo.R #12 初心者セッション
kosugitti
0
270
Rails アプリ地図考 Flush Cut
makicamel
1
130
PHPカンファレンス名古屋2025 タスク分解の試行錯誤〜レビュー負荷を下げるために〜
soichi
1
630
バッチを作らなきゃとなったときに考えること
irof
2
470
Conform を推す - Advocating for Conform
mizoguchicoji
3
700
さいきょうのレイヤードアーキテクチャについて考えてみた
yahiru
3
770
SwiftUI Viewの責務分離
elmetal
PRO
2
260
ML.NETで始める機械学習
ymd65536
0
210
Grafana Cloudとソラカメ
devoc
0
180
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
150
Rubyで始める関数型ドメインモデリング
shogo_tksk
0
130
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Rails Girls Zürich Keynote
gr2m
94
13k
Visualization
eitanlees
146
15k
Building an army of robots
kneath
303
45k
Rebuilding a faster, lazier Slack
samanthasiow
80
8.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Fireside Chat
paigeccino
34
3.2k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Docker and Python
trallard
44
3.3k
Faster Mobile Websites
deanohume
306
31k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
52k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.1k
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 / tom@codon.com