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
A Little RSpec
Search
Jano González
September 26, 2011
Programming
2
280
A Little RSpec
The basics of RSpec, code at
https://github.com/janogonzalez/a-little-rspec
Jano González
September 26, 2011
Tweet
Share
More Decks by Jano González
See All by Jano González
Containerizing your monolith
janogonzalez
0
310
Migrando a Microservicios
janogonzalez
1
270
Extracting services from a monolith
janogonzalez
3
240
¿Después de 10 años, realmente entiendo esta industria?
janogonzalez
3
430
Microservices in Practice
janogonzalez
7
630
Two programmers in one
janogonzalez
1
140
The Bipolar Programmer
janogonzalez
4
580
Ruby for your two internal programmers
janogonzalez
4
220
Ruby for Java minds
janogonzalez
4
1k
Other Decks in Programming
See All in Programming
カスタムエフェクトプラグインで Atom Craft をいい感じにする@ADX / ADX LE勉強会 vol.1
cox2
0
110
Jaspr Dart Web Framework 박제창 @Devfest 2024
itsmedreamwalker
0
150
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
2.3k
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.4k
AWS re:Invent 2024個人的まとめ
satoshi256kbyte
0
110
Amazon Nova Reelの可能性
hideg
0
210
ゼロからの、レトロゲームエンジンの作り方
tokujiros
3
1.1k
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
890
ErdMap: Thinking about a map for Rails applications
makicamel
1
700
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
6
710
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
630
“あなた” の開発を支援する AI エージェント Bedrock Engineer / introducing-bedrock-engineer
gawa
7
580
Featured
See All Featured
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
A Philosophy of Restraint
colly
203
16k
Producing Creativity
orderedlist
PRO
343
39k
Music & Morning Musume
bryan
46
6.3k
Scaling GitHub
holman
459
140k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
Thoughts on Productivity
jonyablonski
68
4.4k
The Invisible Side of Design
smashingmag
299
50k
The Cult of Friendly URLs
andyhume
78
6.1k
Transcript
Jano González Developer A Little RSpec
code: https://github.com/janogonzalez/a-little-rspec
From testing to describing code
Describing Code
Describing Code
Describing Code • describe: The thing to describe • it:
The expected behavior • should/should_not: The assertion
DRYing
DRYing
DRYing • before: Preparing the test case • after: Clean
up • around: Mix before & after
A little more context
A little more context
A little more context • context
More DRYing
More DRYing
More DRYing • let • let!
More DRYing
More DRYing • implicit subject
More DRYing
More DRYing • implicit subject • it • its
More DRYing
More DRYing • explicit subject
More info
More info • @dchelimsky • The RSpec Book • @janogonzalez
;) • http://gemaroja.com ;)