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
400
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
310
Web Directions - Code Leaders - Hiring Juniors
radar
0
400
The Future of Rails - Take 2
radar
0
86
The Future of Rails
radar
1
90
Exploding Rails
radar
9
1.7k
Hiring Juniors
radar
2
390
The Perfect Coding Test
radar
0
100
Your First Developer Job
radar
1
95
Hiring Juniors
radar
2
250
Other Decks in Programming
See All in Programming
VS Code をプロダクトにどう取り込むか
onomax
1
360
TYPO3 v13 – The road to LTS: What's new and new APIs
luisasofie_xoxo
0
200
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
170
Ruby Pattern Matching
bkuhlmann
0
930
Git Lint
bkuhlmann
4
750
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
Let's learn code review
riofujimon
1
320
Rethinking UI building strategies @ SFI 2024
letelete
0
270
Code Reviews
bkuhlmann
4
890
What We Can Learn From OSS
inouehi
0
420
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
790
Featured
See All Featured
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Statistics for Hackers
jakevdp
789
220k
BBQ
matthewcrist
80
8.8k
Raft: Consensus for Rubyists
vanstee
132
6.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
244
20k
Atom: Resistance is Futile
akmur
259
25k
4 Signs Your Business is Dying
shpigford
175
21k
Embracing the Ebb and Flow
colly
80
4.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
Making Projects Easy
brettharned
108
5.5k
Thoughts on Productivity
jonyablonski
58
3.8k
The Invisible Customer
myddelton
114
12k
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