Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Intro-spec-tion RubyConfAU 2016
Search
Jon Rowe
February 11, 2016
Technology
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Intro-spec-tion RubyConfAU 2016
A whirlwind tour of the internals of RSpec.
Jon Rowe
February 11, 2016
Transcript
66 slides
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
More Decks by Jon Rowe
See All by Jon Rowe
RSpec - Level Up
jonrowe
0
350
Learning From Other Languages - Immutability
jonrowe
0
210
RSpec + Rails Without rspec-rails @ RoRoSyd November 2015
jonrowe
1
290
RSpec 3 and why I `expect(you).to care`
jonrowe
3
660
Upgrading RSpec - RoRoSyd June 14
jonrowe
1
130
def tdd_ios( hint: RubyMotion ) @ #SydInMotion
jonrowe
0
150
Tales Of Interest - RubyConfAU 2014
jonrowe
0
110
RSpec... Your doing it wrong... RoRoSYD Lightning Talk October 2013
jonrowe
0
180
expect(RSpec::3).to be_coming_soon @Dius_AU September 2013
jonrowe
0
230
Other Decks in Technology
See All in Technology
Libérez Firefox et Thunderbird avec nos astuces
hellosct1
0
110
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
1
660
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
【Oracle AI SPOTLIGHT ウェビナー】AI時代、狙われるデータと止められない業務をどう守るか?
oracle4engineer
PRO
1
140
[関西Kaggler会 20261113] 続・コミュニティコンペのススメ
nejumi
0
200
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
350
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
150
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
420
From vibe coding to reliable (agentic) development
jcabot
0
250
常時稼働エージェントの作り方(Claude公式ブログを資料化)
minorun365
PRO
20
29k
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
NutanixへのSSHアクセスの今後について
shadowhat
0
170
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
15k
Facilitating Awesome Meetings
lara
57
7.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
A better future with KSS
kneath
240
18k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
400
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
470
Between Models and Reality
mayunak
4
610
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k