Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Intro-spec-tion RubyConfAU 2016
Jon Rowe
February 11, 2016
Technology
0
140
Intro-spec-tion RubyConfAU 2016
A whirlwind tour of the internals of RSpec.
Jon Rowe
February 11, 2016
Tweet
Share
More Decks by Jon Rowe
See All by Jon Rowe
RSpec - Level Up
jonrowe
0
160
Learning From Other Languages - Immutability
jonrowe
0
87
RSpec + Rails Without rspec-rails @ RoRoSyd November 2015
jonrowe
1
200
RSpec 3 and why I `expect(you).to care`
jonrowe
3
420
Upgrading RSpec - RoRoSyd June 14
jonrowe
1
65
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
jonrowe
0
77
Tales Of Interest - RubyConfAU 2014
jonrowe
0
50
RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013
jonrowe
0
110
expect(RSpec::3).to be_coming_soon @Dius_AU September 2013
jonrowe
0
110
Other Decks in Technology
See All in Technology
AWS ChatbotでEC2インスタンスを 起動できるようにした
iwamot
0
170
數據的多重宇宙 @ LINE Taiwan
line_developers_tw
PRO
0
730
Oracle Content Management サービス概要 (2022年5月版)
oracle4engineer
PRO
0
120
エンタープライズにおけるSRE立ち上げとNew Relic選定に至った背景とは / SRE Startup and New Relic in the Enterprise
tomoyakitaura
2
160
家の明るさ制御 / Brightness Control in My House
1024jp
0
130
[SRE NEXT 2022]メルカリグループにおけるSREs
srenext
0
420
Embedded SRE at Mercari
tcnksm
0
860
⚡Lightdashを試してみた
k_data_analyst
0
220
Spotify物理コントローラーがほしい
miso
0
170
Scrum Fest Niigata 2022 開発エンジニアに聞いてみよう!
moritamasami
1
560
Unity Package Managerで自作パッケージを配布する方法
yunoda
0
220
220521_SFN_品質文化試論と『LEADING QUALITY』/220521_SFN_Essay_of_Quality_Culture_and_LEADING_QUALITY
mkwrd
0
300
Featured
See All Featured
Design by the Numbers
sachag
271
17k
Building Adaptive Systems
keathley
25
1.1k
Pencils Down: Stop Designing & Start Developing
hursman
112
9.8k
The Invisible Customer
myddelton
110
11k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.2k
Designing the Hi-DPI Web
ddemaree
272
32k
Fashionably flexible responsive web design (full day workshop)
malarkey
396
62k
Docker and Python
trallard
27
1.5k
Why Our Code Smells
bkeepers
PRO
324
54k
Atom: Resistance is Futile
akmur
255
20k
Become a Pro
speakerdeck
PRO
3
780
jQuery: Nuts, Bolts and Bling
dougneiner
56
6.4k
Transcript
Intro-spec-tion @JonRowe
WHAT IS RSPEC?
<test-unit>
<rspec>
BUT WHAT *IS* RSPEC?
None
CORE MOCKS EXPECTATIONS
CORE MOCKS EXPECTATIONS
CORE MOCKS EXPECTATIONS
CORE MOCKS EXPECTATIONS
CORE MOCKS EXPECTATIONS
CORE
CORE SHOULDA
None
EXPECTATIONS TestUnit
None
EXPECTATIONS TestUnit MOCKS
ETC ETC ETC…
None
BUT WHAT *IS* RSPEC?
ANATOMY OF A SPEC
<rspec>
<core only>
<core only> Example Group
<core only> Instance Methods
<core only> Hooks
<core only> Example
None
None
RSPEC CORE
THE WORLD
CONFIGURATION
THE REPORTER
THE RUNNER
WAIT… EXAMPLE GROUPS…
Runner ExampleGroup Example #<ExampleGroup> before(:suite) before(:group) before(:each)
<rabbit hole>
Runner ExampleGroup Example #<ExampleGroup> after(:suite) after(:group) after(:each)
<blue pill>
<heirarchy>
BUT WHY
JUST RUBY
<include>
<include>
<include>
RSPEC EXPECTATIONS
<core only>
<rspec>
<target>
<matcher>
<protocol>
<DSL>
<class>
<class>
RSPEC MOCKS
<mocks>
<mocks>
<mocks>
SO HOW DOES IT WORK?
<protocol>
RSPEC RAILS
None
None
None
after(:talk)
Thanks @JonRowe