Bugs: Browse | Submit New | Admin

[#8238] spec route generation in Rails trunk

Date:
2007-01-29 01:47
Priority:
3
Submitted By:
Chris Anderson (jchris)
Assigned To:
Nobody (None)
Category:
rails plugin
State:
Closed
Summary:
spec route generation in Rails trunk

Detailed description
Route-generation in specs is broken as of Rails trunk r6062. With Rails r6061, all specs pass, but in 6062 I get a trace
like this every time my controller generates a route:

TypeError in 'Requesting /artists/1 using PUT should redirect to the artist'
can't convert Fixnum into String
(eval):19:in `artist_url'
/Users/jchris/ruby/rails/grabbit/config/../app/controllers/artists_controller.rb:59:in `update'
/Users/jchris/ruby/rails/grabbit/config/../app/controllers/artists_controller.rb:56:in `update'
./spec/controllers/artists_controller_spec.rb:267:in `do_update'
./spec/controllers/artists_controller_spec.rb:287:

The issue affects both RSpec and RSpec on Rails at revision 1359 and 1440. Parallel Test::Unit tests aren't showing
any signs of breakage.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-01-30 17:19
Sender: Chris Anderson

turns out to be an issue with the spec resource generator

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2007-01-30 17:19jchris
resolution_idNone2007-01-30 17:19jchris
close_date2007-01-30 17:192007-01-30 17:19jchris