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
OSSとミニPCと私
anatofuz
1
130
Kiro のリモートワークスペース: IDE は手元のままで、ワークスペースをクラウド、コンテナ、自前のマシンに置く
inariku
PRO
2
270
競馬予想をAIでやってみた話
yoshimura_datam
0
170
一口馬主の募集馬をAIで診断してみた
yoshimura_datam
0
130
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
490
想定外の利用がプロダクトの価値を広げる
lycorptech_jp
PRO
0
140
生成AIによる情報システムへのインパクト (2026年11月版)
taka_aki
0
130
AI-DLCでソフトウェア開発の速さは 上がったのか?
rfdnxbro
0
190
メルカリの小規模チーム「Pod」で、 エンジニアがデータアナリストなしで、 AIを使ってデータ分析の自走を目指す取り組み
jackojacko_
1
400
Amazon Bedrock AgentCore の基礎とセキュリティ・ガバナンス
ren8k
0
290
設計手法を「道具」として使いこなすために
a_suenami
7
1.8k
ポケモンバトルのAIエージェント
koji_kawamura
0
330
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Side Projects
sachag
456
43k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
390
Product Roadmaps are Hard
iamctodd
55
13k
Documentation Writing (for coders)
carmenintech
77
5.7k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Building Applications with DynamoDB
mza
96
7.3k
Mobile First: as difficult as doing things right
swwweet
225
10k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
The SEO Collaboration Effect
kristinabergwall1
1
630
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k