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
380
第2回 SQL勉強会 (社外公開用)
saiidalhalawi
0
150
Other Decks in Programming
See All in Programming
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
距離関数を極める! / SESSIONS 2024
gam0022
0
290
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
cmp.Or に感動した
otakakot
3
200
subpath importsで始めるモック生活
10tera
0
320
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
120
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
Outline View in SwiftUI
1024jp
1
330
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
200
Contemporary Test Cases
maaretp
0
140
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Gamification - CAS2011
davidbonilla
80
5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Designing Experiences People Love
moore
138
23k
Visualization
eitanlees
145
15k
The Cult of Friendly URLs
andyhume
78
6k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
A better future with KSS
kneath
238
17k
Docker and Python
trallard
40
3.1k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
How STYLIGHT went responsive
nonsquared
95
5.2k
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