Hi guys,
After updating to edge rails I’ve just struck this problem too. I’ve
just
grabbed fresh updates of rspec, rspec-rails, and rails and I’m receiving
a
few controller spec failures related to view rendering when views
shouldn’t
be rendered (failures relate to mock objects not having expected
attributes
and methods).
I’ve logged this in lighthouse →
http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/516
Here’s a copy of the full backtrace of one of the fails:
vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:376:in
`raise_named_route_error’
vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:340:in
generate' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:208:in
rewrite_path’
vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:187:in
rewrite_url' vendor/rails/actionpack/lib/action_controller/url_rewriter.rb:165:in
rewrite’
vendor/rails/actionpack/lib/action_controller/base.rb:630:in
url_for' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:85:in
send’
vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:85:in
url_for' (eval):15:in
user_path’
vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:111:in
`send’
vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:111:in
`polymorphic_url’
vendor/rails/actionpack/lib/action_controller/polymorphic_routes.rb:118:in
polymorphic_path' vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:91:in
url_for’
vendor/rails/actionpack/lib/action_view/helpers/url_helper.rb:228:in
link_to' app/views/home/index.html.erb:5 app/views/home/index.html.erb:4:in
each’
app/views/home/index.html.erb:4
vendor/rails/actionpack/lib/action_view/renderable.rb:35:in send' vendor/rails/actionpack/lib/action_view/renderable.rb:35:in
render’
vendor/rails/actionpack/lib/action_view/template.rb:68:in
render_template' vendor/rails/actionpack/lib/action_view/base.rb:266:in
orig_render’
vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_view/base.rb:26:in
render' vendor/rails/actionpack/lib/action_view/base.rb:369:in
_render_with_layout’
vendor/rails/actionpack/lib/action_view/base.rb:260:in `orig_render’
vendor/plugins/rspec-rails/lib/spec/rails/extensions/action_view/base.rb:26:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:1118:in
render_for_file’
vendor/rails/actionpack/lib/action_controller/base.rb:881:in
render_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
render’
vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in
realtime' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
render’
vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb:213:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:853:in
render_without_benchmark’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
render' vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in
realtime’
vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in
`render’
vendor/plugins/rspec-rails/lib/spec/rails/example/controller_example_group.rb:213:in
render' vendor/rails/actionpack/lib/action_controller/base.rb:1170:in
default_render’
vendor/rails/actionpack/lib/action_controller/base.rb:1176:in
perform_action_without_filters' vendor/rails/actionpack/lib/action_controller/filters.rb:617:in
call_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in
measure' vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue’
vendor/rails/actionpack/lib/action_controller/rescue.rb:202:in
perform_action_without_caching' vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in
perform_action’
vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:48:in
cache' vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
cache’
vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in
perform_action' vendor/rails/actionpack/lib/action_controller/base.rb:535:in
send’
vendor/rails/actionpack/lib/action_controller/base.rb:535:in
`process_without_filters’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in
synchronize' vendor/rails/actionpack/lib/action_controller/base.rb:535:in
process_without_filters’
vendor/rails/actionpack/lib/action_controller/filters.rb:606:in
`process_without_session_management_support’
vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in
process_without_test' vendor/rails/actionpack/lib/action_controller/test_process.rb:18:in
process’
vendor/rails/actionpack/lib/action_controller/test_process.rb:400:in
process' vendor/rails/actionpack/lib/action_controller/test_process.rb:371:in
get’
controllers/home_controller_spec.rb:12
vendor/plugins/rspec/lib/spec/example/example_methods.rb:83:in
instance_eval' vendor/plugins/rspec/lib/spec/example/example_methods.rb:83:in
eval_block’
vendor/plugins/rspec/lib/spec/example/example_methods.rb:21:in
`execute’
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/timeout.rb:48:in
timeout' vendor/plugins/rspec/lib/spec/example/example_methods.rb:18:in
execute’
vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:305:in
execute_examples' vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:304:in
each’
vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:304:in
execute_examples' vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:132:in
run’
vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:22:in
run' vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in
each’
vendor/plugins/rspec/lib/spec/runner/example_group_runner.rb:21:in
run' vendor/plugins/rspec/lib/spec/runner/options.rb:115:in
run_examples’
vendor/plugins/rspec/lib/spec.rb:21:in run' vendor/plugins/rspec/lib/spec/runner.rb:192:in
register_at_exit_hook’
controllers/home_controller_spec