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
Integration Testing Engines
Search
Ryan Bigg
April 26, 2012
Programming
6
430
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
370
Web Directions - Code Leaders - Hiring Juniors
radar
0
520
The Future of Rails - Take 2
radar
0
96
The Future of Rails
radar
1
100
Exploding Rails
radar
9
1.8k
Hiring Juniors
radar
2
410
The Perfect Coding Test
radar
0
110
Your First Developer Job
radar
1
100
Hiring Juniors
radar
2
270
Other Decks in Programming
See All in Programming
快速入門可觀測性
blueswen
0
400
103 Early Hints
sugi_0000
1
250
Security_for_introducing_eBPF
kentatada
0
110
テストコード書いてみませんか?
onopon
2
190
アクターシステムに頼らずEvent Sourcingする方法について
j5ik2o
4
340
情報漏洩させないための設計
kubotak
4
730
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
920
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
670
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
200
testcontainers のススメ
sgash708
1
130
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
170
PHPとAPI Platformで作る本格的なWeb APIアプリケーション(入門編) / phpcon 2024 Intro to API Platform
ttskch
0
300
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Unsuck your backbone
ammeep
669
57k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
A designer walks into a library…
pauljervisheath
205
24k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The Cult of Friendly URLs
andyhume
78
6.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
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