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
680
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
76
Programming with Something
tomstuart
0
230
Representations count
tomstuart
2
300
Get off the tightrope
tomstuart
0
460
Automatic differentiation in Ruby
tomstuart
0
730
Hello, declarative world
tomstuart
1
530
Consider static typing
tomstuart
2
970
A Lever for the Mind
tomstuart
2
660
Refactoring Ruby with Monads
tomstuart
20
3.3k
Other Decks in Programming
See All in Programming
Milestoner
bkuhlmann
1
410
Ruby GitHub Packages
bkuhlmann
0
630
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
860
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
雑に思考を整理する技術と効能
konifar
58
28k
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
260
入門 AWS Amplify Gen2 / Introduction to AWS Amplify Gen2
genkiogasawara
1
320
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
220
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
260
From Spring Boot 2 to Spring Boot 3 with Java 22 and Jakarta EE
ivargrimstad
0
1.1k
Designing for tomorrow's programming workflows
honnibal
PRO
2
120
Goのmultiple errorsについて (2024年4月版)
syumai
1
330
Featured
See All Featured
Docker and Python
trallard
33
2.7k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.3k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
1
1.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
344
19k
A better future with KSS
kneath
231
16k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.4k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
Product Roadmaps are Hard
iamctodd
43
9.7k
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]