This was a talk that covers the ways that you can integration test engines.
IntegrationtestingenginesThursday, 26 April 12
View Slide
Disagree.Thursday, 26 April 12
Rails.application.routes.drawThursday, 26 April 12
Rails.application.routes.drawbullshit.Thursday, 26 April 12
Nooooooo do not drawroutes on the application!!!Fuck.I want to jump on stage.#railsconfhttps://twitter.com/ryanbigg/status/194501115524554754Thursday, 26 April 12
Your::Engine.routes.drawThursday, 26 April 12
Your::Engine.routes.drawreal talk.Thursday, 26 April 12
StronglyDisagree.Thursday, 26 April 12
mount Your::Engine, :at => “path”Thursday, 26 April 12
mount Your::Engine, :at => “/”Thursday, 26 April 12
OMG!!! MY ROUTES AREBROKEN!!!Thursday, 26 April 12
No.They’re not “broken”Thursday, 26 April 12
They are elsewhere.Thursday, 26 April 12
module Yourclass Engine < Rails::Engineisolate_namespaceendendThursday, 26 April 12
Your::Engine.routes.draw doresources :peopleendThursday, 26 April 12
Rails.application.routes.draw doresources :peopleendThursday, 26 April 12
your_engine.people_pathmain_app.people_pathThursday, 26 April 12
describe Spree::ProductsControllerit “should get all products” doget :indexendendThursday, 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::ProductsControllerit “should get all products” doget :index, :use_route => :spreeendendThursday, 26 April 12
describe “products” doit “sees products” dovisit products_pathendendThursday, 26 April 12
undefined method `products_path’Thursday, 26 April 12
Lies, damned lies.(again)Thursday, 26 April 12
module Spree::Core::UrlHelpersdef spreeSpree::Core::Engine.routes.url_helpersendendThursday, 26 April 12
describe “products” doit “sees products” dovisit spree.products_pathendendThursday, 26 April 12
Rails 3 in Actionmanning.com/katzChapterThursday, 26 April 12