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
750
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
130
Programming with Something
tomstuart
0
290
Representations count
tomstuart
2
360
Get off the tightrope
tomstuart
0
580
Automatic differentiation in Ruby
tomstuart
0
790
Hello, declarative world
tomstuart
1
590
Consider static typing
tomstuart
2
1k
A Lever for the Mind
tomstuart
2
730
Refactoring Ruby with Monads
tomstuart
20
3.4k
Other Decks in Programming
See All in Programming
Prompt Engineering for Developers @ AWS Community Day Adria 2024
slobodan
0
120
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
1
240
色々なIaCツールを実際に触って比較してみる
iriikeita
0
130
Tuning GraphQL on Rails
pyama86
2
780
のびしろを広げる巻き込まれ力:偶然を活かすキャリアの作り方/oso2024
takahashiikki
1
350
VR HMDとしてのVision Pro+ゲーム開発について
yasei_no_otoko
0
100
生成 AI を活用した toitta 切片分類機能の裏側 / Inside toitta's AI-Based Factoid Clustering
pokutuna
0
530
Server Driven Compose With Firebase
skydoves
0
350
推し活の ハイトラフィックに立ち向かう Railsとアーキテクチャ - Kaigi on Rails 2024
falcon8823
6
1.7k
Sidekiqで実現する 長時間非同期処理の中断と再開 / Pausing and Resuming Long-Running Asynchronous Jobs with Sidekiq
hypermkt
6
2.2k
C#/.NETのこれまでのふりかえり
tomokusaba
1
140
いかにして不足・不整合なくデータ移行したか
tjmtmmnk
1
1k
Featured
See All Featured
A Philosophy of Restraint
colly
203
16k
Building Your Own Lightsaber
phodgson
102
6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Embracing the Ebb and Flow
colly
84
4.4k
Code Review Best Practice
trishagee
64
17k
Automating Front-end Workflow
addyosmani
1365
200k
The Power of CSS Pseudo Elements
geoffreycrofte
72
5.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
280
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
We Have a Design System, Now What?
morganepeng
50
7.2k
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]