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
330
Migrando a Microservicios
janogonzalez
1
280
Extracting services from a monolith
janogonzalez
3
250
¿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
230
Ruby for Java minds
janogonzalez
4
1k
Other Decks in Programming
See All in Programming
Rubyで始める関数型ドメインモデリング
shogo_tksk
0
120
Immutable ActiveRecord
megane42
0
140
『GO』アプリ データ基盤のログ収集システムコスト削減
mot_techtalk
0
130
Honoとフロントエンドの 型安全性について
yodaka
7
1.3k
技術を根付かせる / How to make technology take root
kubode
1
250
SpringBoot3.4の構造化ログ #kanjava
irof
3
1k
PHP ステートレス VS ステートフル 状態管理と並行性 / php-stateless-stateful
ytake
0
100
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
580
法律の脱レガシーに学ぶフロントエンド刷新
oguemon
5
740
Grafana Cloudとソラカメ
devoc
0
180
負債になりにくいCSSをデザイナとつくるには?
fsubal
10
2.5k
PHPのバージョンアップ時にも役立ったAST
matsuo_atsushi
0
130
Featured
See All Featured
Building Adaptive Systems
keathley
40
2.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
12
970
Thoughts on Productivity
jonyablonski
69
4.5k
The World Runs on Bad Software
bkeepers
PRO
67
11k
How to Think Like a Performance Engineer
csswizardry
22
1.4k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Writing Fast Ruby
sferik
628
61k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
51k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
A better future with KSS
kneath
238
17k
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 ;)