Created
June 4, 2012 21:35
-
-
Save MattRogish/2870966 to your computer and use it in GitHub Desktop.
working helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle exec rake spec:acceptance | |
WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. | |
at /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/rake-0.9.2.2/lib/rake/rdoctask.rb | |
Please install RDoc 2.4.2+ to generate documentation. | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
Gem.source_index called from /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21. | |
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. | |
Gem.source_index called from /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/rails-2.3.14/lib/rails/gem_dependency.rb:104. | |
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01. | |
Gem::SourceIndex#search called from /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:119. | |
NOTE: Gem::SourceIndex#search is deprecated with no replacement. It will be removed on or after 2011-11-01. | |
Gem::SourceIndex#search called from /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:119. | |
[16, 25] in ./spec/acceptance/products_spec.rb | |
16 | |
17 scenario 'Working helpers' do | |
18 edit_product_path(1) | |
19 | |
20 require 'ruby-debug'; debugger | |
=> 21 product_path(1) | |
22 end | |
23 | |
24 scenario 'Broken helper #1' do | |
25 require 'ruby-debug'; debugger | |
spec/acceptance/products_spec.rb:21 | |
product_path(1) | |
(rdb:1) s | |
*** No sourcefile available for (eval) | |
(eval):2 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):6 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):6 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):9 | |
(rdb:1) | |
[10, 19] in /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/activesupport-2.3.14/lib/active_support/core_ext/array/extract_options.rb | |
10 # end | |
11 # | |
12 # options(1, 2) # => {} | |
13 # options(1, 2, :a => :b) # => {:a=>:b} | |
14 def extract_options! | |
=> 15 last.is_a?(::Hash) ? pop : {} | |
16 end | |
17 end | |
18 end | |
19 end | |
/Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/activesupport-2.3.14/lib/active_support/core_ext/array/extract_options.rb:15 | |
last.is_a?(::Hash) ? pop : {} | |
(rdb:1) | |
[10, 19] in /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/activesupport-2.3.14/lib/active_support/core_ext/array/extract_options.rb | |
10 # end | |
11 # | |
12 # options(1, 2) # => {} | |
13 # options(1, 2, :a => :b) # => {:a=>:b} | |
14 def extract_options! | |
=> 15 last.is_a?(::Hash) ? pop : {} | |
16 end | |
17 end | |
18 end | |
19 end | |
/Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/activesupport-2.3.14/lib/active_support/core_ext/array/extract_options.rb:15 | |
last.is_a?(::Hash) ? pop : {} | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):10 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):11 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):12 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):14 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):17 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):2 | |
(rdb:1) | |
*** No sourcefile available for (eval) | |
(eval):2 | |
(rdb:1) | |
[132, 141] in /Users/mattrogish/.rvm/gems/ree-1.8.7-2012.02@test/gems/actionpack-2.3.14/lib/action_controller/url_rewriter.rb | |
132 # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :port=>'8080' # => 'http://somehost.org:8080/tasks/testing' | |
133 # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :anchor => 'ok', :only_path => true # => '/tasks/testing#ok' | |
134 # url_for :controller => 'tasks', :action => 'testing', :trailing_slash=>true # => 'http://somehost.org/tasks/testing/' | |
135 # url_for :controller => 'tasks', :action => 'testing', :host=>'somehost.org', :number => '33' # => 'http://somehost.org/tasks/testing?number=33' | |
136 def url_for(options) | |
=> 137 options = self.class.default_url_options.merge(options) | |
138 | |
139 url = '' | |
140 | |
141 unless options.delete(:only_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment