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
780
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
170
Programming with Something
tomstuart
0
330
Representations count
tomstuart
2
400
Get off the tightrope
tomstuart
0
680
Automatic differentiation in Ruby
tomstuart
0
820
Hello, declarative world
tomstuart
1
640
Consider static typing
tomstuart
2
1.1k
A Lever for the Mind
tomstuart
2
770
Refactoring Ruby with Monads
tomstuart
20
3.5k
Other Decks in Programming
See All in Programming
Unlock the Potential of Swift Code Generation
rockname
0
210
爆速スッキリ! Rspack 移行の成果と道のり - Muddy Web #11
dora1998
1
270
サービスクラスのありがたみを発見したときの思い出 #phpcon_odawara
77web
4
570
PHPでお金を扱う時、終わりのない 謎の1円調査の旅にでなくて済む方法
nakka
4
1.4k
The Weight of Data: Rethinking Cloud-Native Systems for the Age of AI
hollycummins
0
250
海外のアプリで見かけたかっこいいTransitionを真似てみる
shogotakasaki
1
150
コンテナでLambdaをデプロイするときに知っておきたかったこと
_takahash
0
170
DataStoreをテストする
mkeeda
0
270
これだけは知っておきたいクラス設計の基礎知識 version 2
masuda220
PRO
23
5.4k
AIコードエディタの基盤となるLLMのFlutter性能評価
alquist4121
0
190
Preact、HooksとSignalsの両立 / Preact: Harmonizing Hooks and Signals
ssssota
1
1.2k
DomainException と Result 型で作る型安全なエラーハンドリング
karszawa
0
860
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
430
65k
The Invisible Side of Design
smashingmag
299
50k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Art, The Web, and Tiny UX
lynnandtonic
298
20k
What's in a price? How to price your products and services
michaelherold
245
12k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Making the Leap to Tech Lead
cromwellryan
133
9.2k
Why Our Code Smells
bkeepers
PRO
336
57k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
A better future with KSS
kneath
239
17k
GraphQLとの向き合い方2022年版
quramy
45
14k
BBQ
matthewcrist
88
9.6k
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