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
RSpec、あなたならどう書く?
Search
Saiid Al-Halawi
June 26, 2019
Programming
1
1.4k
RSpec、あなたならどう書く?
Saiid Al-Halawi
June 26, 2019
Tweet
Share
More Decks by Saiid Al-Halawi
See All by Saiid Al-Halawi
第1回 SQL勉強会 (社外公開用)
saiidalhalawi
0
370
第2回 SQL勉強会 (社外公開用)
saiidalhalawi
0
140
Other Decks in Programming
See All in Programming
qmuntal/stateless のススメ
sgash708
0
110
EventSourcingの理想と現実
wenas
5
2k
【Kaigi on Rails 2024】YOUTRUST スポンサーLT
krpk1900
0
210
飲食業界向けマルチプロダクトを実現させる開発体制とリアルな現状
hiroya0601
1
370
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
1
240
Vitest Browser Mode への期待 / Vitest Browser Mode
odanado
PRO
2
1.6k
Piniaの現状と今後
waka292
5
1.4k
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
8
730
go.mod、DockerfileやCI設定に分散しがちなGoのバージョンをまとめて管理する / Go Connect #3
arthur1
10
2.3k
カラム追加で増えるActiveRecordのメモリサイズ イメージできますか?
asayamakk
3
1.1k
Going Staff - Keynote edition
pragtob
0
430
Golang と Erlang
taiyow
8
1.8k
Featured
See All Featured
Thoughts on Productivity
jonyablonski
67
4.3k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Documentation Writing (for coders)
carmenintech
65
4.4k
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
59k
Art, The Web, and Tiny UX
lynnandtonic
296
20k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
32
1.8k
Automating Front-end Workflow
addyosmani
1365
200k
A Modern Web Designer's Workflow
chriscoyier
692
190k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
A designer walks into a library…
pauljervisheath
202
24k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
9
670
Transcript
34QFD ͋ͳͨͳΒͲ͏ॻ͘ʁ HPUBOEBSC
͓લ୭Αʁ
ࣗݾհ wੁॿ w όοΫΤϯυΤϯδχΞ 3BJMTྺ͘Β͍ w -JOD`XFMMͱ͍͏ҩྍελʔτΞοϓͰ 3BJMT৮ͬͯ·͢ɻ w
ݸਓͰ࠷ۙ"QPMMP 5ZQFTDSJQUͳͲ w 5XJUUFS!TBJJE@LL w (JUIVCTBJJEBMIBMBXJ w OPUFIUUQTOPUFNVTBJJE
͓ࣄ https://jp.techcrunch.com/2019/05/27/linc-well-fundraising/
͔͜͜Βຊ
w 3TQFDͰςετΛॻ͍͍ͯͯʮಈ͚͘Ͳɺຊʹ͜ΕͰ͍ ͍ΜͩΖ͏͔ɾɾɾʯͱɺࢥ͏͜ͱ͋Γ·ͤΜ͔ʁ w ϨϏϡʔ$*ύε͢Δ͠ɺ͕͋Δ༁Ͱͳ͍͚ Ͳɾɾɾ w Ͳ͏ʹͬ͘͠Γ͜ͳ͍͕͚࣌ͬ͜͏͋Δ ଞͷਓ͕Ͳ͏ॻ͍ͯΔͷ͔ؾʹͳΔ w
৭ʑͳྲّྀߟ͑ํΛΓ͍ͨ ςετͷϞϠϞϠ
ͦ͜ͰɺΞϯέʔτΛ ͱΓ͍ͨͱࢥ͍·͢
wʮ͍ͭ͜͏ॻ͍ͯΔʯ wʮنνʔϜʹΑΔʯ wʮͬͪ͜ͷํ͕͖ʯ wʮ͜ΕҎ֎͋Γ͑ͳ͍ʂʯ wɾɾɾFUD ৭ʑ͋Δͱࢥ͍·͕͢ɺ ࢥ͍ࢥ͍ͷஅج४Ͱ͝ճ͍ͩ͘͞ɻ
ͯ͠
34QFDɺ͋ͳͨͳΒͲ͏ॻ͘ʁ
ୈ̍
3FRVFTU4QFD "DUJPO͝ͱʹ͚Δ $POUSPMMFS͝ͱʹ͚Δ
ୈ
4ZTUFN4QFD ॏ͍ͷͰେࣄͳͱ͚ͩ͜ ͳΔ͘ଟ͘ͷέʔεॻ͖͍ͨ
ୈ
4IBSFE&YBNQMFT Γա͗ΔͱٯʹಡΈʹ͍͘ͷͰ ͋·ΓΘͳ͍ %3:%3:ੵۃతʹ͏
ୈ
CFGPSFBGUFS BMM ศར͔ͩΒ͏࣌͋Δ 3VCPDPQͰېࢭ https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll
ୈ
34QFD/FTUFE(SPVQT ߏԽ͍ͤͨ͞ͷͰڐՄ 3VCPDPQͰېࢭ
ୈ
ςετσʔλͷఆٛ ݺͼग़͠ݩͰͭ͘Δ ݺͼग़͠ઌͰ͓ͭͬͯ͘͘
ୈ
࣌ؒ ࢭΊΔ ͭ͘Δ
ୈ
ςετͷઆ໌ ຊޠ ӳޠ
ୈ
ෳࡶͳࣄલσʔλ CFGPSFͰ·ͱΊͯ MFUͰΈ্͛Δ
ୈ
JUείʔϓ ઈରʹԚͨ͘͠ͳ͍ʂ ͋Δఔॊೈʹ
Ҏ্ͰऴΘΓͰ͢
w 3FRVFTU4QFDɾɾɾ"DUJPO͝ͱ w 4ZTUFN4QFDɾɾɾେࣄͳͱ͚ͩ͜ w 4IBSFE&YBNQMFTɾɾɾ͋·ΓΘͳ͍ w CFGPSFBGUFS BMM ɾɾɾېࢭ
w /FTUFE(SPVQTɾɾɾ͏ w ςετσʔλͷఆٛɾɾɾݺͼग़͠ݩͰͭ͘Δ w ࣌ؒɾɾɾͭ͘Δ w ςετͷઆ໌ɾɾɾӳޠ എ৳ͼ w ෳࡶͳࣄલσʔλɾɾɾMFUͰΈ্͛Δ w JUείʔϓɾɾɾઈରԚͨ͘͠ͳ͍ʂ ࢲͷ߹
ճΛݟ͍ͯΔͱ ͳΜͱͳ͘ਓͱͳΓ͕ ݟ͖͑ͯ·͢Ͷ ‘’ Tell me how you write
RSpec tests, I'll tell you who you are. ’’
օ͞Μ Ͳ͏ͩͬͨͰ͠ΐ͏͔ʁ
w 3FRVFTU4QFDɾɾɾ$POUSPMMFS͝ͱ w 4ZTUFN4QFDɾɾɾେࣄͳͱ͚ͩ͜ w 4IBSFE&YBNQMFTɾɾɾੵۃతʹ͏ w CFGPSFBGUFS BMM ɾɾɾ
w /FTUFE(SPVQTɾɾɾ͏ w ςετσʔλͷఆٛɾɾɾݺͼग़͠ઌ 'BDUPSZ Ͱͭ͘ Δ w ࣌ؒɾɾɾͭ͘Δ w ςετͷઆ໌ɾɾɾຊޠ w ෳࡶͳࣄલσʔλɾɾɾMFUͰΈ্͛Δ w JUείʔϓɾɾɾ͋Δఔॊೈʹ ͷΞδϟΠϧूܭ݁Ռ ࢹ ༏ ༏ ͬͪ͜ ༏ ༏ ༏ ༏ ѹత༏ ༏ উഊ͔ͭͣ έʔεʹΑΔ
ଞʹʮ͜ͷʁʯ ͱ͍͏ͷ͕͋Ε ੋඇΓ͍ͨͰ͢
8&"3&)*3*/(తͳ https://www.wantedly.com/projects/324351
͋Γ͕ͱ͏͍͟͝·ͨ͠ N @@ N