[rspec-devel] [ rspec-Patches-8316 ] to_param should return a stringified key in resource generator's controller spec

noreply at rubyforge.org noreply at rubyforge.org
Tue Jan 30 13:38:39 EST 2007


Patches item #8316, was opened at 2007-01-30 17:24
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=8316&group_id=797

>Category: rails plugin
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Chris Anderson (jchris)
>Assigned to: David Chelimsky (dchelimsky)
Summary: to_param should return a stringified key in resource generator's controller spec

Initial Comment:
Rails expects a string here, raising errors like:

TypeError in 'Requesting /venues using POST should create a new venue'
can't convert Fixnum into String
(eval):19:in `venue_url'

when given a Fixnum param.

This patch simply adds a few quote marks to the rspec resource generator's controller spec template.

----------------------------------------------------------------------

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-30 18:38

Message:
Applied in rev 1445

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3151&aid=8316&group_id=797


More information about the rspec-devel mailing list