Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Integration Testing Engines
Ryan Bigg
April 26, 2012
Programming
6
370
Integration Testing Engines
This was a talk that covers the ways that you can integration test engines.
Ryan Bigg
April 26, 2012
Tweet
Share
More Decks by Ryan Bigg
See All by Ryan Bigg
Hiring Juniors - RubyConf Indonesia 2019 Closing Keynote
radar
1
230
Web Directions - Code Leaders - Hiring Juniors
radar
0
270
The Future of Rails - Take 2
radar
0
80
The Future of Rails
radar
1
58
Exploding Rails
radar
9
1.6k
Hiring Juniors
radar
2
340
The Perfect Coding Test
radar
0
93
Your First Developer Job
radar
1
90
Hiring Juniors
radar
2
220
Other Decks in Programming
See All in Programming
子育てとEMと転職と
_atsushisakai
1
330
コンピュータビジョンセミナー2 / computer_vision_seminar_libSGM
fixstars
0
310
Amazon QuickSightのアップデート -re:Invent 2022の復習&2022年ハイライト-
shogo452
0
210
Form実装基本を学び直してみた
hyugatsukui
0
230
Azure Functionsをサクッと開発、サクッとデプロイ/vscodeconf2023-baba
nina01
1
330
Swift Observation
shiz
3
270
Excelの助けを借りて楽にシナリオを作ろう
rpa_niiyama
0
260
Prácticas de Seguridad en Kubernetes
pablokbs
0
120
domain層のモジュール化 / MoT TechTalk #15
mot_techtalk
0
110
OSSから学んだPR Descriptionの書き方
fugakkbn
4
130
AWSとCPUのムフフな関係
cmdemura
0
460
新卒でサービス立ち上げから Hasuraを使って3年経った振り返り
yutorin
0
210
Featured
See All Featured
JazzCon 2018 Closing Keynote - Leadership for the Reluctant Leader
reverentgeek
175
9.1k
Art, The Web, and Tiny UX
lynnandtonic
284
18k
It's Worth the Effort
3n
177
26k
Docker and Python
trallard
30
1.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
22
42k
A designer walks into a library…
pauljervisheath
198
16k
Designing with Data
zakiwarfel
91
4.2k
A Philosophy of Restraint
colly
193
15k
Music & Morning Musume
bryan
37
4.6k
How STYLIGHT went responsive
nonsquared
89
4.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
2
390
jQuery: Nuts, Bolts and Bling
dougneiner
57
6.6k
Transcript
Integration testing engines Thursday, 26 April 12
Disagree. Thursday, 26 April 12
Rails.application.routes.draw Thursday, 26 April 12
Rails.application.routes.draw bullshit. Thursday, 26 April 12
Nooooooo do not draw routes on the application!!! Fuck. I
want to jump on stage. #railsconf https://twitter.com/ryanbigg/status/194501115524554754 Thursday, 26 April 12
Your::Engine.routes.draw Thursday, 26 April 12
Your::Engine.routes.draw real talk. Thursday, 26 April 12
Strongly Disagree. Thursday, 26 April 12
mount Your::Engine, :at => “path” Thursday, 26 April 12
mount Your::Engine, :at => “/” Thursday, 26 April 12
OMG!!! MY ROUTES ARE BROKEN!!! Thursday, 26 April 12
No. They’re not “broken” Thursday, 26 April 12
They are elsewhere. Thursday, 26 April 12
module Your class Engine < Rails::Engine isolate_namespace end end Thursday,
26 April 12
Your::Engine.routes.draw do resources :people end Thursday, 26 April 12
Rails.application.routes.draw do resources :people end Thursday, 26 April 12
your_engine.people_path main_app.people_path Thursday, 26 April 12
describe Spree::ProductsController it “should get all products” do get :index
end end Thursday, 26 April 12
Thursday, 26 April 12
No route matches { :controller => “Spree::ProductsController”, :action => “index”
} Thursday, 26 April 12
Lies, damned lies. Thursday, 26 April 12
describe Spree::ProductsController it “should get all products” do get :index,
:use_route => :spree end end Thursday, 26 April 12
describe “products” do it “sees products” do visit products_path end
end Thursday, 26 April 12
Thursday, 26 April 12
undefined method `products_path’ Thursday, 26 April 12
Lies, damned lies. (again) Thursday, 26 April 12
module Spree::Core::UrlHelpers def spree Spree::Core::Engine.routes.url_helpers end end Thursday, 26 April
12
describe “products” do it “sees products” do visit spree.products_path end
end Thursday, 26 April 12
Thursday, 26 April 12
Rails 3 in Action manning.com/katz Chapter Thursday, 26 April 12