Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Welcome back to RSpec
Tom Stuart
July 14, 2014
Programming
0
530
Welcome back to RSpec
Tom Stuart
July 14, 2014
Tweet
Share
More Decks by Tom Stuart
See All by Tom Stuart
Programming with Something
tomstuart
0
110
Representations count
tomstuart
2
170
Get off the tightrope
tomstuart
0
290
Automatic differentiation in Ruby
tomstuart
0
520
Hello, declarative world
tomstuart
1
360
Consider static typing
tomstuart
2
790
A Lever for the Mind
tomstuart
2
490
Refactoring Ruby with Monads
tomstuart
20
3k
My favourite algorithm
tomstuart
8
2.7k
Other Decks in Programming
See All in Programming
Jetpack Compose, 어디까지 알고 있을까?
jisungbin
0
110
engineer
spacemarket
0
810
Cross Deviceチームにおけるスマートテレビアプリ開発ってどんな感じ?
cokaholic
0
120
Baseline Profilesでアプリのパフォーマンスを向上させる / Improve app performance with Baseline Profiles
numeroanddev
0
230
RFC 9111: HTTP Caching
jxck
0
160
I/O Extended 2022 in Android ~ Whats new in Android development tools
pluu
0
540
A Philosophy of Software Design 後半
yosuke_furukawa
PRO
10
2.7k
Gitlab CIでMRを自動生成する
forcia_dev_pr
0
110
Node.jsデザインパターンを読んで
mmmommm
0
2.5k
Get Ready for Jakarta EE 10
ivargrimstad
0
110
Angular‘s Future without NgModules: Architectures with Standalone Components @enterJS
manfredsteyer
PRO
0
200
Amazon ECSのネットワーク関連コストの話
msato
0
630
Featured
See All Featured
How GitHub Uses GitHub to Build GitHub
holman
465
280k
How To Stay Up To Date on Web Technology
chriscoyier
780
250k
Mobile First: as difficult as doing things right
swwweet
213
7.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
62k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
Fireside Chat
paigeccino
11
1.3k
Building Applications with DynamoDB
mza
83
4.7k
Making Projects Easy
brettharned
98
4.3k
Bootstrapping a Software Product
garrettdimon
296
110k
How to Ace a Technical Interview
jacobian
265
21k
Documentation Writing (for coders)
carmenhchung
48
2.5k
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
172
8.4k
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