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
420
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
350
Web Directions - Code Leaders - Hiring Juniors
radar
0
480
The Future of Rails - Take 2
radar
0
93
The Future of Rails
radar
1
100
Exploding Rails
radar
9
1.8k
Hiring Juniors
radar
2
400
The Perfect Coding Test
radar
0
110
Your First Developer Job
radar
1
100
Hiring Juniors
radar
2
260
Other Decks in Programming
See All in Programming
Lessons by WebAssembly app in production on CDN Edge Computing Service
tetsuharuohzeki
0
210
Prolog入門
qnighy
4
1k
Patched fetch did not work
quramy
4
380
Ebitengineの1vs1ゲーム WebRTCの活用
ponyo877
0
380
Jakarta EE meets AI
ivargrimstad
1
520
The Sequel to a Dream of Ruby Parser's Grammar
ydah
1
220
GraphQL あるいは React における自律的なデータ取得について
quramy
11
3k
Our Websites Need a Lifestyle Change, Not a Diet
ryantownsend
0
150
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
410
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
660
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
4
90k
REXML改善のその後
naitoh
0
190
Featured
See All Featured
Building Your Own Lightsaber
phodgson
101
6k
Done Done
chrislema
180
16k
Building Applications with DynamoDB
mza
90
6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Practical Orchestrator
shlominoach
185
10k
Creatively Recalculating Your Daily Design Routine
revolveconf
215
12k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
Building Adaptive Systems
keathley
36
2.1k
Why You Should Never Use an ORM
jnunemaker
PRO
53
8.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
Design by the Numbers
sachag
277
19k
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