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
Taming Chaotic Specs: RSpec Design Patterns
Search
Adam Cuppy (he/him)
April 25, 2014
Technology
350
3
Share
Taming Chaotic Specs: RSpec Design Patterns
RailsConf 2014 Workshop on Rspec
Adam Cuppy (he/him)
April 25, 2014
More Decks by Adam Cuppy (he/him)
See All by Adam Cuppy (he/him)
Mentorship in Three Acts
acuppy
0
130
Mechanically Confident
acuppy
1
160
Pluck It - Southeast Ruby 2017
acuppy
1
140
Trust Me - Rocky Mountain Ruby 2017
acuppy
0
100
Brighton Ruby 2017 - Difficult Conversations
acuppy
1
89
GoRuCo 2017 - Difficult Conversations
acuppy
0
130
GORUCO - Cult(ure)
acuppy
0
97
#RailsPacific - Taming Chaotic Specs - RSpec Design Patterns
acuppy
5
1.1k
#RailsPacific - [NOTES] Taming Chaotic Specs - RSpec Design Patterns
acuppy
1
230
Other Decks in Technology
See All in Technology
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
11k
The essence of decision-making lies in primary data
kaminashi
0
230
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
AIにより大幅に強化された AWS Transform Customを触ってみる
0air
0
280
JSTQB Expert Levelシラバス「テストマネジメント」日本語版のご紹介
ymty
0
110
スケーリングを封じられたEC2を救いたい
senseofunity129
0
140
推し活エージェント
yuntan_t
1
570
FlutterでPiP再生を実装した話
s9a17
0
240
遊びで始めたNew Relic MCP、気づいたらChatOpsなオブザーバビリティボットができてました/From New Relic MCP to a ChatOps Observability Bot
aeonpeople
1
150
Cortex Codeでデータの仕事を全部Agenticにやりきろう!
gappy50
0
240
OpenClawでPM業務を自動化
knishioka
2
370
GitHub Actions侵害 — 相次ぐ事例を振り返り、次なる脅威に備える
flatt_security
12
7.4k
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
1
3.2k
Building an army of robots
kneath
306
46k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
780
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Mobile First: as difficult as doing things right
swwweet
225
10k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
180
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.5k
Six Lessons from altMBA
skipperchong
29
4.2k
Transcript
www.codingzeal.com @adamcuppy Adam Cuppy
October 22 - 25 Agile TDD Developers Training & Conference
RogueRails.com
Control values with! `let()`
Descriptive Naming
let(:user1) { … } let(:user2) { … }
it { expect(user1).to be_valid } it { expect(user2).to be_valid }
let(:user_with_company) { … } let(:user_without_company) { … }
it { expect(user_with_company).to be_valid } it { expect(user_without_company).to be_valid }
Start from a Minimum Valid Object
it { object.valid?.should_not be_true }
it { expect(object).not_to be_valid }
it { expect(object).to be_invalid }
Permutations! using `context`s
Extract Common Behaviors
Declarative Expectations
October 22 - 25 Agile TDD Developers Training & Conference
RogueRails.com
Thank You!