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
570
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
150
Representations count
tomstuart
2
200
Get off the tightrope
tomstuart
0
330
Automatic differentiation in Ruby
tomstuart
0
580
Hello, declarative world
tomstuart
1
410
Consider static typing
tomstuart
2
840
A Lever for the Mind
tomstuart
2
530
Refactoring Ruby with Monads
tomstuart
20
3.1k
My favourite algorithm
tomstuart
8
2.8k
Other Decks in Programming
See All in Programming
Glance App Widgetでウィジェットを作ろう / MoT TechTalk #15
mot_techtalk
0
110
はてなリモートインターンシップ2022 インフラ 講義資料
hatena
4
2.1k
Use KMM to call the API of the National Tax Agency
akkeylab
0
290
フロントエンドで 良いコードを書くために
t_keshi
3
1.6k
量子コンピュータ時代のプログラミングセミナー / 20230119_Amplify_seminar _shift_optimization
fixstars
0
170
Refactor with using `available` and `deprecated`
417_72ki
3
380
僕が考えた超最強のKMMアプリの作り方
spbaya0141
0
180
Remote SSHで行うVS Codeリモートホスト開発とトラブルシューティング
smt7174
1
440
ECテックカンファレンス2023
kspace
1
230
Quarto Tips for Academic Presentation
nicetak
0
910
TypeScript 4.9のas const satisfiesが便利
tonkotsuboy_com
9
2.2k
社会人 20 年目エンジニア、発信で技術学びなおしてる話
e99h2121
1
140
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
8
3.2k
Music & Morning Musume
bryan
37
4.6k
Building Flexible Design Systems
yeseniaperezcruz
314
35k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
351
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
643
54k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1.1M
For a Future-Friendly Web
brad_frost
166
7.7k
Fontdeck: Realign not Redesign
paulrobertlloyd
74
4.3k
Art Directing for the Web. Five minutes with CSS Template Areas
malarkey
196
9.8k
Raft: Consensus for Rubyists
vanstee
130
5.7k
Writing Fast Ruby
sferik
613
58k
Teambox: Starting and Learning
jrom
124
7.9k
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]