[rspec-devel] [ rspec-Bugs-9760 ] rspec generators incompatible with changes to edge rails
noreply at rubyforge.org
noreply at rubyforge.org
Mon Apr 2 10:59:20 EDT 2007
Bugs item #9760, was opened at 2007-04-02 14:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=9760&group_id=797
Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: rspec generators incompatible with changes to edge rails
Initial Comment:
rails rev 6499
rspec rev 1672 (branches/0.9-dev)
Stand in example_rails_app and run:
RSPEC_RAILS_VERSION=edge rake rspec:pre_commit
and you'll get the following errors:
====================================
controller specs
====================================
'PurchasesController#route_for should map { :controller => 'purchases', :action => 'edit', :id => 1 } to /purchases/1;edit' FAILED
expected "/purchases/1;edit", got "/purchases/1/edit" (using ==)
./spec/controllers/purchases_controller_spec.rb:19:
====================================
(that is because the mapping nown goes to /purchases/1/edit, as it probably should have all along)
====================================
====================================
view specs
====================================
1)
'/purchases/edit.rhtml should render edit form' FAILED
Expected at least 1 elements, found 0.
<false> is not true.
./spec/views/purchases/edit_rhtml_spec.rb:20:
2)
'/purchases/index.rhtml should render list of purchases' FAILED
2.
<false> is not true.
./spec/views/purchases/index_rhtml_spec.rb:29:
3)
'/purchases/new.rhtml should render new form' FAILED
Expected at least 1 elements, found 0.
<false> is not true.
./spec/views/purchases/new_rhtml_spec.rb:20:
4)
'/purchases/show.rhtml should render attributes in <p>' FAILED
expected /9\.99/, got ""
./spec/views/purchases/show_rhtml_spec.rb:22:
====================================
It turns out the generated .rhtml files are all empty - probably related to rails switching from .rhtml to .erb
====================================
And we're also getting this deprecation warning:
DEPRECATION WARNING: template_root is deprecated and will be removed from Rails 2.0 (use view_paths instead) See http://www.rubyonrails.org/deprecation for details. (called from template_root= at ./vendor/rails/edge/actionpack/lib/action_controller/base.rb:360)
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=9760&group_id=797
More information about the rspec-devel
mailing list