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
3
330
Taming Chaotic Specs: RSpec Design Patterns
RailsConf 2014 Workshop on Rspec
Adam Cuppy (he/him)
April 25, 2014
Tweet
Share
More Decks by Adam Cuppy (he/him)
See All by Adam Cuppy (he/him)
Mentorship in Three Acts
acuppy
0
80
Mechanically Confident
acuppy
1
130
Pluck It - Southeast Ruby 2017
acuppy
1
120
Trust Me - Rocky Mountain Ruby 2017
acuppy
0
76
Brighton Ruby 2017 - Difficult Conversations
acuppy
1
57
GoRuCo 2017 - Difficult Conversations
acuppy
0
96
GORUCO - Cult(ure)
acuppy
0
70
#RailsPacific - Taming Chaotic Specs - RSpec Design Patterns
acuppy
5
980
#RailsPacific - [NOTES] Taming Chaotic Specs - RSpec Design Patterns
acuppy
1
180
Other Decks in Technology
See All in Technology
私が trocco を推す理由
__allllllllez__
1
200
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
0
190
一生覚えておきたい「システム開発=コミュニケーション」〜初めての実務案件振り返りLT〜
maimyyym
0
120
よく聞くけど使ったことないソフトウェアNo.1 KafkaとSnowflake
foursue
4
340
生産性向上チームの紹介
cybozuinsideout
PRO
1
860
Reducing Cross-Zone Egress at Spotify with Custom gRPC Load Balancing Recap
koh_naga
0
200
20分で完全に理解するGrafanaダッシュボード
hamadakoji
1
250
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
160
DevOpsDays History and my DevOps story
kawaguti
PRO
9
2.4k
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
2
450
GraphQL 成熟度モデルの紹介と、プロダクトに当てはめた事例 / GraphQL maturity model
mh4gf
7
1.3k
Databricks における 『MLOps』
databricksjapan
2
170
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
44
9.7k
Designing Experiences People Love
moore
136
23k
The Pragmatic Product Professional
lauravandoore
25
5.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
260
12k
Infographics Made Easy
chrislema
238
18k
KATA
mclloyd
15
12k
In The Pink: A Labor of Love
frogandcode
138
21k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Ruby is Unlike a Banana
tanoku
96
10k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
187
16k
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!