Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
untestable production code
Search
TAKAHASHI Kazunari
March 20, 2013
0
540
untestable production code
TAKAHASHI Kazunari
March 20, 2013
Tweet
Share
More Decks by TAKAHASHI Kazunari
See All by TAKAHASHI Kazunari
fat-settings-yml
1syo
0
850
雑につくるKPIツールのススメ
1syo
0
490
みなとRuby会議02やりたい
1syo
1
300
Testing Wercker plugin with bats
1syo
0
560
私を変えた1冊の本
1syo
0
830
普通のCSVアップロードフォームを作りたい(改)
1syo
9
1.1k
普通のCSVアップロードフォームを作りたい
1syo
17
3k
kaja-2013
1syo
0
520
authorization-for-buktorg
1syo
0
350
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
697
190k
Become a Pro
speakerdeck
PRO
30
5.7k
Building an army of robots
kneath
306
46k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
10
700
RailsConf 2023
tenderlove
30
1.3k
Navigating Team Friction
lara
191
16k
Fireside Chat
paigeccino
41
3.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.8k
Transcript
テストしづらい コードたち 2013/03/20 Shibuya.rb :20130320 @1syo 133݄20ਫ༵
じこショウカイ •Yokohama.rb メンバー •みなとRubyかいぎ Organizer •RubyKaja Award 2012 Winner •TDDBC
Yokohama TA 133݄20ਫ༵
133݄20ਫ༵
カイハツのすすめ方 •Request Spec •リソース単体のテストとリファクタリ ング •複数のリソースを跨るテストとリファ クタリング •viewのリファクタリング •機能追加 133݄20ਫ༵
カイハツのすすめ方 •Request Spec •リソース単体のテストとリファク タリング •複数のリソースを跨るテ ストとリファクタリング •viewのリファクタリング •機能追加 133݄20ਫ༵
げんじょう • テストカバレッジの↑ • 53ʙ58%くらい → 97.8% • Rails Best
Practicesのwarning • 130 → 10 • 追加されたコードの行数 • 5734行 • 削除されたコードの行数 • 5452行 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
GroupsController 133݄20ਫ༵
GroupsController 133݄20ਫ༵
EventsController 133݄20ਫ༵
EventsController 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
体系的に学ぶ安全なWebアプリケーションの作り方より引用 133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
133݄20ਫ༵
view > controller > model 133݄20ਫ༵
しつもんコーナー 133݄20ਫ༵
Thank you! 133݄20ਫ༵