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
450
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
400
Web Directions - Code Leaders - Hiring Juniors
radar
0
570
The Future of Rails - Take 2
radar
0
97
The Future of Rails
radar
1
110
Exploding Rails
radar
9
1.8k
Hiring Juniors
radar
2
430
The Perfect Coding Test
radar
0
110
Your First Developer Job
radar
1
110
Hiring Juniors
radar
2
270
Other Decks in Programming
See All in Programming
Youtube Lofier - Chrome拡張開発
ninikoko
0
2.4k
Ruby's Line Breaks
yui_knk
2
920
KawaiiLT 登壇資料 キャリアとモチベーション
hiiragi
0
110
タイムゾーンの奥地は思ったよりも闇深いかもしれない
suguruooki
1
640
Signal-Based Data FetchingWith the New httpResource
manfredsteyer
PRO
0
170
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
0
110
エンジニアが挑む、限界までの越境
nealle
1
150
Develop Faster With FrankenPHP
dunglas
2
3.3k
SQL Server ベクトル検索
odashinsuke
0
180
AWS で実現する安全な AI エージェントの作り方 〜 Bedrock Engineer の実装例を添えて 〜 / how-to-build-secure-ai-agents
gawa
8
800
Unlock the Potential of Swift Code Generation
rockname
0
250
The Implementations of Advanced LR Parser Algorithm
junk0612
1
280
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.4k
Visualization
eitanlees
146
16k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Why Our Code Smells
bkeepers
PRO
336
57k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
227
22k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
30
2.3k
Making Projects Easy
brettharned
116
6.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
RailsConf 2023
tenderlove
30
1.1k
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